SilverStripe\CMS\Tests\Search\ZZZSearchFormTest
Synopsis
class ZZZSearchFormTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'SearchFormTest.yml';
- protected static array $illegal_extensions = ;
- protected ContentController $mockController;
- protected bool $usesTransactions = false;
- // methods
- public void waitUntilIndexingFinished()
- public static void setUpBeforeClass()
- protected void setUp()
- protected Boolean checkFulltextSupport()
- public void testSearchFormTemplateCanBeChanged()
- public void testPublishedPagesMatchedByTitle()
- public void testDoubleQuotesPublishedPagesMatchedByTitle()
- public void testUnpublishedPagesNotIncluded()
- public void testPagesRestrictedToLoggedinUsersNotIncluded()
- public void testPagesRestrictedToSpecificGroupNotIncluded()
- public void testInheritedRestrictedPagesNotIncluded()
- public void testDisabledShowInSearchFlagNotIncludedForSiteTree()
- public void testDisabledShowInSearchFlagNotIncludedForFiles()
- public void testSearchTitleAndContentWithSpecialCharacters()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Tasks
Line | Task |
---|---|
30+ | Fix unpublished pages check in testPublishedPagesMatchedByTitle() |
30+ | All tests run on unpublished pages at the moment, due to the searchform not distinguishing between them Because this manipulates the test database in severe ways, I've renamed the test to force it to run last... |
Members
protected
- $fixture_file
- $illegal_extensions
- $mockController — SilverStripe\CMS\Controllers\ContentController
- $usesTransactions — SilverStripe\CMS\Tests\Search\bool
Methods
protected
public
- setUpBeforeClass()
- testDisabledShowInSearchFlagNotIncludedForFiles()
- testDisabledShowInSearchFlagNotIncludedForSiteTree()
- testDoubleQuotesPublishedPagesMatchedByTitle()
- testInheritedRestrictedPagesNotIncluded()
- testPagesRestrictedToLoggedinUsersNotIncluded()
- testPagesRestrictedToSpecificGroupNotIncluded()
- testPublishedPagesMatchedByTitle()
- testSearchFormTemplateCanBeChanged()
- testSearchTitleAndContentWithSpecialCharacters()
- testUnpublishedPagesNotIncluded()
- waitUntilIndexingFinished()