Beispiel #1
0
 /**
  * @test
  */
 public function removeAttachmentFromObjectStorageHoldingAttachment()
 {
     $attachment = new Tx_Nxshowroom_Domain_Model_Attachment();
     $localObjectStorage = new Tx_Extbase_Persistence_ObjectStorage();
     $localObjectStorage->attach($attachment);
     $localObjectStorage->detach($attachment);
     $this->fixture->addAttachment($attachment);
     $this->fixture->removeAttachment($attachment);
     $this->assertEquals($localObjectStorage, $this->fixture->getAttachment());
 }