Browse Source

Assert array keys replaced by shuffle()

Corey Taylor 5 years ago
parent
commit
72255bff8c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/TestCase/Collection/CollectionTest.php

+ 1 - 0
tests/TestCase/Collection/CollectionTest.php

@@ -934,6 +934,7 @@ class CollectionTest extends TestCase
         $collection = (new Collection(['a' => 1]))->append(['a' => 2])->shuffle();
         $result = $collection->toArray();
         $this->assertCount(2, $result);
+        $this->assertEquals([0, 1], array_keys($result));
         $this->assertContainsEquals(1, $result);
         $this->assertContainsEquals(2, $result);
     }