summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorminstel <minstel@yandex.ru>2016-10-18 23:55:46 +0300
committerminstel <minstel@yandex.ru>2016-10-18 23:55:46 +0300
commit18da10400c02d945632c8c7dd49d78d19d9fd9a0 (patch)
tree6f2ccbe50b209188fc82cf9d7a8fb6e5493d6668
parentfb563442e535c71b935582ce8d90470ffc958ad5 (diff)
downloadcontroller-18da10400c02d945632c8c7dd49d78d19d9fd9a0.zip
controller-18da10400c02d945632c8c7dd49d78d19d9fd9a0.tar.gz
controller-18da10400c02d945632c8c7dd49d78d19d9fd9a0.tar.bz2
Minor fix
-rw-r--r--tests/Controller/RouteActionTest.php10
-rw-r--r--tests/support/TestController.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/Controller/RouteActionTest.php b/tests/Controller/RouteActionTest.php
index a0d9739..30f1923 100644
--- a/tests/Controller/RouteActionTest.php
+++ b/tests/Controller/RouteActionTest.php
@@ -41,11 +41,11 @@ class RouteActionTest extends PHPUnit_Framework_TestCase
return [
[(object)['controller' => 'TestController'], false],
[(object)['controller' => 'TestController', 'action' => 'nonExistMethod'], false],
- [(object)['controller' => 'TestController', 'action' => 'test'], false],
- [(object)['controller' => 'TestController', 'action' => 'test', 'param2' => 'value2'], false],
- [(object)['controller' => 'TestController', 'action' => 'test', 'param1' => 'value1'], true],
- [(object)['controller' => 'TestController', 'action' => 'test', 'param1' => 'value1', 'param2' => 'value2'], true],
- [(object)['controller' => 'TestController', 'action' => 'test', 'args' => ['value1', 'value2']], true]
+ [(object)['controller' => 'TestController', 'action' => 'test-run'], false],
+ [(object)['controller' => 'TestController', 'action' => 'test-run', 'param2' => 'value2'], false],
+ [(object)['controller' => 'TestController', 'action' => 'test-run', 'param1' => 'value1'], true],
+ [(object)['controller' => 'TestController', 'action' => 'test-run', 'param1' => 'value1', 'param2' => 'value2'], true],
+ [(object)['controller' => 'TestController', 'action' => 'test-run', 'args' => ['value1', 'value2']], true]
];
}
diff --git a/tests/support/TestController.php b/tests/support/TestController.php
index 4f8fb41..a2f5b51 100644
--- a/tests/support/TestController.php
+++ b/tests/support/TestController.php
@@ -19,7 +19,7 @@ class TestController extends Controller
* @param mixed $param2
* @return ResponseInterface
*/
- public function testAction($param1, $param2 = 'defaultValue')
+ public function testRunAction($param1, $param2 = 'defaultValue')
{
$response = $this->getResponse();