Cviebrock\EloquentTaggable\Test\ScopeTests::testWithAnyTags PHP Method

testWithAnyTags() public method

Test searching by any tags
public testWithAnyTags ( )
    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);
    }