mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7380 from mikenz/patch-13
Test fix: Don't hard code the security page_class controller
This commit is contained in:
commit
0aabcac747
@ -724,7 +724,9 @@ class SecurityTest extends FunctionalTest
|
||||
$result = $method->invoke($security, 'Page');
|
||||
|
||||
// Ensure page shares the same controller as security
|
||||
$this->assertInstanceOf(PageController::class, $result);
|
||||
$securityClass = Config::inst()->get(Security::class, 'page_class');
|
||||
$securityPage = new $securityClass();
|
||||
$this->assertInstanceOf($securityPage->getControllerName(), $result);
|
||||
$this->assertEquals($request, $result->getRequest());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user