Skip to content

Commit

Permalink
Refactored site id test
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Feb 13, 2024
1 parent d7dd463 commit 0d04d9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/ScoutIndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ public function it_throws_an_exception_if_no_query_is_returned_from_criteria()
}

/** @test * */
public function it_sets_the_primary_site_id_if_the_criteria_has_no_site_id()
public function it_checks_any_site_if_the_criteria_has_no_site_id()
{
$index = new ScoutIndex('Blog');

$index->criteria(function($query) {
return $query;
});

$this->assertEquals(Craft::$app->getSites()->getPrimarySite()->id, $index->criteria->siteId);
$this->assertEquals('*', $index->criteria->siteId);
}
}

0 comments on commit 0d04d9b

Please sign in to comment.