\FAQPageTest
Tests basic functionality of FAQPage
Synopsis
class FAQPageTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'FAQPageTest.yml';
- protected $_page = NULL;
- protected $_page2 = NULL;
- protected $faq1 = NULL;
- protected $faq2 = NULL;
- // methods
- public void setUp()
- public void testIndex()
- public void testView()
- public void testSearch()
- public void testSinglePageLimit()
- public void testFilterFeaturedFAQs()
- public void testGetSelectedIDs()
Hierarchy
Extends
- FunctionalTest
Members
protected
- $_page
- $_page2
- $faq1
- $faq2
- $fixture_file
Methods
public
- setUp()
- testFilterFeaturedFAQs() — Featured FAQs should not display on frontend if not in the selected category If no category selected, display everything
- testGetSelectedIDs() — getSelectedIDs should pull all of the ids of the passed category, and any descendants added to the page.
- testIndex() — Basic load page test
- testSearch() — Test search results
- testSinglePageLimit() — When Single Page limit set, should get limit set of results and no pagination
- testView() — Tests individual view for FAQ TODO: change after slug change