Skip to content

Commit

Permalink
adjust test_it_can_get_the_sorting_from_the_scout_builder test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ar0010r committed Jul 27, 2023
1 parent 50c92b1 commit ff34a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/ScoutSearchCommandBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ public function test_it_can_get_the_sorting_from_the_scout_builder(): void
$builder->model = Mockery::mock(Model::class);

$builder->index = self::TEST_INDEX;
$builder->orders = [[ 'column' => 'id', 'direction' => 'asc']];
$builder->orders = [['column' => 'id', 'direction' => 'asc'], new Sort('name')];

$subject = ScoutSearchCommandBuilder::wrap($builder);

self::assertSame([['id' => 'asc']], $subject->getSort());
self::assertSame([['id' => 'asc'], ['name' => 'asc']], $subject->getSort());
}

public function test_it_can_get_the_fields_from_scout_builder(): void
Expand Down

0 comments on commit ff34a4e

Please sign in to comment.