Skip to content
Permalink
Browse files

Changed duplicate collection test to better reflect it's method name

  • Loading branch information...
davidyell committed Oct 26, 2018
1 parent 708dd02 commit ea0990a6deb55d80d44a3a72b1910ba346c07e20
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/TestCase/Collection/CollectionTest.php
@@ -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));
}));
}
/**

0 comments on commit ea0990a

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