diff options
author | Arnold Daniels <arnold@jasny.net> | 2017-02-09 12:54:41 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2017-02-09 14:54:53 +0100 |
commit | 9f2e0789a87685d6ba8f2cf10ee345d64771d95e (patch) | |
tree | 9f49f5b9543d7f8319fb91105a1c89fb3f10eecd /tests/Controller/RouteActionTest.php | |
parent | 142aa6e66c0559b03278f8f62ecec5747b8e019e (diff) | |
download | controller-9f2e0789a87685d6ba8f2cf10ee345d64771d95e.zip controller-9f2e0789a87685d6ba8f2cf10ee345d64771d95e.tar.gz controller-9f2e0789a87685d6ba8f2cf10ee345d64771d95e.tar.bz2 |
Fixed issues with controllerinterface and tests
Diffstat (limited to 'tests/Controller/RouteActionTest.php')
-rw-r--r-- | tests/Controller/RouteActionTest.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Controller/RouteActionTest.php b/tests/Controller/RouteActionTest.php index fcab3ed..3e42d1d 100644 --- a/tests/Controller/RouteActionTest.php +++ b/tests/Controller/RouteActionTest.php @@ -14,7 +14,10 @@ class RouteActionTest extends \PHPUnit_Framework_TestCase use TestHelper { getController as private _getController; } - + + /** + * @return string + */ protected function getControllerClass() { return RouteActionController::class; @@ -27,7 +30,7 @@ class RouteActionTest extends \PHPUnit_Framework_TestCase * @param string $className * @return RouteActionController|\PHPUnit_Framework_MockObject_MockObject */ - protected function getController($methods = array(), $className = null) + protected function getController($methods = [], $className = null) { return $this->_getController( array_merge($methods, ['getRequest', 'defaultAction', 'runTestAction', 'notFound', 'before', 'after']), @@ -41,7 +44,7 @@ class RouteActionTest extends \PHPUnit_Framework_TestCase { return [ [(object)['args' => ['woo']], 'defaultAction', ['woo']], - [(object)['action' => 'test-run'], 'testRunAction'], + [(object)['action' => 'run-test'], 'runTestAction'], [(object)['action' => 'non-existent'], 'notFound'] ]; } |