/** * Test if tag can be set * * @test * @return void */ public function tagsCanBeSet() { $tags = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $tag = new Tx_News_Domain_Model_Tag(); $tag->setTitle('Tag'); $tags->attach($tags); $this->newsDomainModelInstance->setTags($tags); $this->assertEquals($tags, $this->newsDomainModelInstance->getTags()); }
/** * Test if tag can be set * * @test * @return void */ public function tagsCanBeSet() { $tags = '123'; $this->newsDomainModelInstance->setTags($tags); $this->assertEquals($tags, $this->newsDomainModelInstance->getTags()); }