public function testRemoveTag() { $tag1 = $this->dummyData->getTag(); $tag2 = $this->dummyData->getTag(); $product = new Product(); $product->addTag($tag1); $product->addTag($tag2); $this->assertSame(2, count($product->getTags())); $product->removeTag($tag2); $this->assertSame(1, count($product->getTags())); }