Skip to content

Commit

Permalink
Fix tests failing due to test suite changes, and implementation chang…
Browse files Browse the repository at this point in the history
…es in test classes
  • Loading branch information
markstory committed Nov 16, 2017
1 parent 0b6f918 commit c1f6c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase/Routing/RequestActionTraitTest.php
Expand Up @@ -43,6 +43,7 @@ public function setUp()
parent::setUp();
static::setAppNamespace();
Security::setSalt('not-the-default');
DispatcherFactory::clear();
DispatcherFactory::add('Routing');
DispatcherFactory::add('ControllerFactory');
$this->object = $this->getObjectForTrait('Cake\Routing\RequestActionTrait');
Expand Down Expand Up @@ -243,7 +244,7 @@ public function testRequestActionParamParseAndPass()
{
$result = $this->object->requestAction('/request_action/params_pass');
$result = json_decode($result, true);
$this->assertEquals('request_action/params_pass', $result['url']);
$this->assertEquals('/request_action/params_pass', $result['url']);
$this->assertEquals('RequestAction', $result['params']['controller']);
$this->assertEquals('params_pass', $result['params']['action']);
$this->assertNull($result['params']['plugin']);
Expand Down

0 comments on commit c1f6c93

Please sign in to comment.