From ff34a4e3313bb74491909bdf7b744194a079682a Mon Sep 17 00:00:00 2001 From: Ar0010r Date: Fri, 28 Jul 2023 00:34:52 +0300 Subject: [PATCH] adjust test_it_can_get_the_sorting_from_the_scout_builder test --- tests/Unit/ScoutSearchCommandBuilderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/ScoutSearchCommandBuilderTest.php b/tests/Unit/ScoutSearchCommandBuilderTest.php index 41164c5..93d843e 100644 --- a/tests/Unit/ScoutSearchCommandBuilderTest.php +++ b/tests/Unit/ScoutSearchCommandBuilderTest.php @@ -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