Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Nov 12, 2024
1 parent 158bb14 commit f2f2338
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Search/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ public function results_are_found_using_where_json_contains()
['reference' => 'e', 'test_taxonomy' => ['taxonomy-5']],
]);

$results = (new FakeQueryBuilder($items))->withoutData()->whereJsonContains('test_taxonomy', ['taxonomy-1', 'taxonomy-5'])->get();
$results = (new FakeQueryBuilder($items))->withoutData()->whereJsonContains('test_taxonomy', ['taxonomy-1', 'taxonomy-3'])->get();

$this->assertCount(3, $results);
$this->assertEquals(['a', 'c', 'e'], $results->map->reference->all());
$this->assertCount(1, $results);
$this->assertEquals(['c'], $results->map->reference->all());

$results = (new FakeQueryBuilder($items))->withoutData()->whereJsonContains('test_taxonomy', 'taxonomy-1')->get();

Expand Down

0 comments on commit f2f2338

Please sign in to comment.