Beispiel #1
0
 /**
  * @test
  */
 public function removeTagFromObjectStorageHoldingTags()
 {
     $tag = new \Lobcher\Simpleblog\Domain\Model\Tag();
     $tagsObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $tagsObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($tag));
     $this->inject($this->subject, 'tags', $tagsObjectStorageMock);
     $this->subject->removeTag($tag);
 }
Beispiel #2
0
 /**
  * @test
  */
 public function setContentForStringSetsContent()
 {
     $this->subject->setContent('Conceived at T3CON10');
     $this->assertAttributeEquals('Conceived at T3CON10', 'content', $this->subject);
 }