From 902f61d13c7a8e21929031d93c90676afa1acdd6 Mon Sep 17 00:00:00 2001 From: Panagiotis Koursaris Date: Wed, 12 Apr 2017 17:17:06 +0300 Subject: [PATCH] Unnecessary static call directly to phpunit --- tests/unit/cms/classes/ControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/cms/classes/ControllerTest.php b/tests/unit/cms/classes/ControllerTest.php index c5814b503..0144e4316 100644 --- a/tests/unit/cms/classes/ControllerTest.php +++ b/tests/unit/cms/classes/ControllerTest.php @@ -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);