Skip to content

Commit

Permalink
Remove mock that wasn't necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Nov 22, 2016
1 parent 5cbf03b commit 55b5291
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -400,10 +400,7 @@ public function testAddContextProviderInvalid()
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([]);
Expand Down

0 comments on commit 55b5291

Please sign in to comment.