/** * Test searching by any tags * * @test */ public function testWithAnyTags() { /** @var Collection $models */ $models = TestModel::withAnyTags('Banana,Cherry')->get(); $keys = $models->modelKeys(); $this->assertArrayValuesAreEqual([$this->testModelABC->getKey(), $this->testModelAB->getKey(), $this->testModelC->getKey()], $keys); }