Browse Source

Fix the fatal error that has started showing up.

mark_story 9 years ago
parent
commit
a366a3c0ce
1 changed files with 1 additions and 4 deletions
  1. 1 4
      tests/TestCase/View/Helper/FormHelperTest.php

+ 1 - 4
tests/TestCase/View/Helper/FormHelperTest.php

@@ -398,10 +398,7 @@ class FormHelperTest extends TestCase
     public function contextSelectionProvider()
     {
         $entity = new Article();
-        $collection = $this->getMockBuilder('Cake\Collection\Collection')
-            ->setMethods(['extract'])
-            ->setConstructorArgs([[$entity]])
-            ->getMock();
+        $collection = new Collection([$entity]);
         $emptyCollection = new Collection([]);
         $emptyArray = [];
         $arrayObject = new \ArrayObject([]);