Browse Source

Fix up mock usage.

Don't mock all the methods as it breaks return types.
Mark Story 8 years ago
parent
commit
010fa95911
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Routing/RouterTest.php

+ 1 - 0
tests/TestCase/Routing/RouterTest.php

@@ -2950,6 +2950,7 @@ class RouterTest extends TestCase
     {
         $route1 = $this->getMockBuilder('Cake\Routing\Route\RedirectRoute')
             ->setConstructorArgs(['/mobile\''])
+            ->setMethods(['parse'])
             ->getMock();
         $class = '\\' . get_class($route1);