SilverStripe\CMS\Tests\Controllers\ModelAsControllerTest
Synopsis
class ModelAsControllerTest
extends FunctionalTest
{
- // members
- protected boolean $usesDatabase = true;
- protected boolean $autoFollowRedirection = false;
- // methods
- protected void setUp()
- protected void generateNestedPagesFixture()
- public void testRedirectsNestedRenamedPages()
- public void testHeavilyNestedRenamedRedirectedPages()
- public void testRedirectionForPreNestedurlsBookmarks()
- public void testDoesntRedirectToNestedChildrenOutsideOfOwnHierarchy()
- public void testRedirectsNestedRenamedPagesWithGetParameters()
- public void testDoesntRedirectToNestedRenamedPageWhenNewExists()
- public void testFindOldPage()
- public void testChildOfDraft()
- public void testAllowMultibyte()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $autoFollowRedirection
- $usesDatabase
Methods
protected
- generateNestedPagesFixture()
- setUp() — New tests require nested urls to be enabled, but the site might not support nested URLs.
public
- testAllowMultibyte()
- testChildOfDraft() — go to a page that's been published but is child of an unpublished page
- testDoesntRedirectToNestedChildrenOutsideOfOwnHierarchy()
- testDoesntRedirectToNestedRenamedPageWhenNewExists() — NOTE: This test requires nested_urls
- testFindOldPage() — NOTE: This test requires nested_urls
- testHeavilyNestedRenamedRedirectedPages() — Test that the redirect works even with a lot of nested pages Original: /oldurl/level2/level3/level4/level5 New: /newurl/level2/level3/level4/level5
- testRedirectionForPreNestedurlsBookmarks()
- testRedirectsNestedRenamedPages() — We're building up a page hierarchy ("nested URLs") and rename all the individual pages afterwards. The assumption is that all pages will be found by their old segments.
- testRedirectsNestedRenamedPagesWithGetParameters() — NOTE: This test requires nested_urls