Skip to content
Permalink
Browse files

Fix up mock usage.

Don't mock all the methods as it breaks return types.
  • Loading branch information...
markstory committed Aug 7, 2017
1 parent 969cbe1 commit 010fa95911c437901a2d29d3bbec24b49aa4f152
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/TestCase/Routing/RouterTest.php
@@ -2950,6 +2950,7 @@ public function testRedirectWithAnotherRouteClass()
{
$route1 = $this->getMockBuilder('Cake\Routing\Route\RedirectRoute')
->setConstructorArgs(['/mobile\''])
->setMethods(['parse'])
->getMock();
$class = '\\' . get_class($route1);

0 comments on commit 010fa95

Please sign in to comment.
You can’t perform that action at this time.