Merge pull request #2816 from panakour/develop

Unnecessary static call directly to phpunit
This commit is contained in:
Luke Towers 2017-04-21 17:19:46 -06:00 committed by GitHub
commit fbd44fe821
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);