Unnecessary static call directly to phpunit

This commit is contained in:
Panagiotis Koursaris 2017-04-12 17:17:06 +03:00 committed by GitHub
parent 29ae9c21a0
commit 902f61d13c
1 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ class ControllerTest extends TestCase
$theme = Theme::load('test');
$controller = new Controller($theme);
$response = $controller->run('/with-component')->getContent();
$page = PHPUnit_Framework_Assert::readAttribute($controller, 'page');
$page = $this->readAttribute($controller, 'page');
$this->assertArrayHasKey('testArchive', $page->components);
$component = $page->components['testArchive'];
@ -324,7 +324,7 @@ ESC;
$theme = Theme::load('test');
$controller = new Controller($theme);
$response = $controller->run('/with-components')->getContent();
$page = PHPUnit_Framework_Assert::readAttribute($controller, 'page');
$page = $this->readAttribute($controller, 'page');
$this->assertArrayHasKey('firstAlias', $page->components);
$this->assertArrayHasKey('secondAlias', $page->components);