Skip to content

Commit

Permalink
Changed duplicate collection test to better reflect it's method name
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yell committed Oct 26, 2018
1 parent 708dd02 commit ea0990a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/TestCase/Collection/CollectionTest.php
Expand Up @@ -676,10 +676,9 @@ public function testMaxCallback($items)
public function testMaxCallable($items)
{
$collection = new Collection($items);
$callback = function ($e) {
$this->assertEquals(['a' => ['b' => ['c' => 4]]], $collection->max(function ($e) {
return $e['a']['b']['c'] * - 1;
};
$this->assertEquals(['a' => ['b' => ['c' => 4]]], $collection->max($callback));
}));
}

/**
Expand Down

0 comments on commit ea0990a

Please sign in to comment.