Cviebrock\EloquentTaggable\Test\TaggingTests::testRemovingAllTags PHP Method

testRemovingAllTags() public method

Test removing all tags
public testRemovingAllTags ( )
    public function testRemovingAllTags()
    {
        $this->testModel->tag('Apple,Banana,Cherry');
        $this->assertEquals(3, count($this->testModel->tags));
        $this->assertArrayValuesAreEqual(['Apple', 'Banana', 'Cherry'], $this->testModel->tagArray);
        $this->testModel->detag();
        $this->assertEquals(0, count($this->testModel->tags));
    }