Skip to content

Commit

Permalink
Fix up mock usage.
Browse files Browse the repository at this point in the history
Don't mock all the methods as it breaks return types.
  • Loading branch information
markstory committed Aug 7, 2017
1 parent 969cbe1 commit 010fa95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TestCase/Routing/RouterTest.php
Expand Up @@ -2950,6 +2950,7 @@ public function testRedirectWithAnotherRouteClass()
{
$route1 = $this->getMockBuilder('Cake\Routing\Route\RedirectRoute')
->setConstructorArgs(['/mobile\''])
->setMethods(['parse'])
->getMock();
$class = '\\' . get_class($route1);

Expand Down

0 comments on commit 010fa95

Please sign in to comment.