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