Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Laravel 5.5.7 changes (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
besologic authored Sep 19, 2017
1 parent 6f72c2f commit 15b6e70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Support/SupportCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,11 @@ public function testSortByString()
$data = $data->sortBy('name');

$this->assertEquals([['name' => 'dayle'], ['name' => 'taylor']], array_values($data->all()));

$data = new Collection([['name' => 'taylor'], ['name' => 'dayle']]);
$data = $data->sortBy('name', SORT_STRING);

$this->assertEquals([['name' => 'dayle'], ['name' => 'taylor']], array_values($data->all()));
}

public function testSortByAlwaysReturnsAssoc()
Expand Down

0 comments on commit 15b6e70

Please sign in to comment.