/** * @test */ public function testAddTag() { $tagId = 1; $dummyTag = $this->buildDummyTag($tagId); $list = new TagCollection(); $list->add($dummyTag); $product = $list->current(); $this->assertEquals($dummyTag, $product, 'The object has not added correctly to the list'); }