Nightjar\Slug\Tests\SlugHandlerTest
Synopsis
class SlugHandlerTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'SlugTest.yml';
- protected static array $extra_dataobjects = ;
- // methods
- public static void getExtraDataObjects()
- protected void setUp()
- public void testRequestingSlugs()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $extra_dataobjects
- $fixture_file
Methods
protected
public
- getExtraDataObjects() — By all accounts this should be setUpBeforeClass... but it is too coarse a call to achieve getting Journalist.URLSlug into the database (modifying Conifg before calling parent::setUpBeforeClass is too soon, and calling after parent;:setUpBeforeClass is too late!). So we must hijack a call from within setUpBeforeClass to allow for this. This is the only viable option!
- testRequestingSlugs()