Fix deprecated PHPUnit calls in ControllerTest

This commit is contained in:
Ben Thomson 2020-05-19 12:57:10 +08:00
parent c3a5780d37
commit 3241cf7d64
No known key found for this signature in database
GPG Key ID: E2B9C73B52D15AA0
1 changed files with 2 additions and 2 deletions

View File

@ -388,7 +388,7 @@ ESC;
$theme = Theme::load('test');
$controller = new Controller($theme);
$response = $controller->run('/with-soft-component-class')->getContent();
$page = $this->readAttribute($controller, 'page');
$page = $controller->getPage();
$this->assertArrayHasKey('testArchive', $page->components);
$component = $page->components['testArchive'];
@ -414,7 +414,7 @@ ESC;
$theme = Theme::load('test');
$controller = new Controller($theme);
$response = $controller->run('/with-soft-component-class-alias')->getContent();
$page = $this->readAttribute($controller, 'page');
$page = $controller->getPage();
$this->assertArrayHasKey('someAlias', $page->components);
$component = $page->components['someAlias'];