Beispiel #1
0
 /**
  * @test
  */
 public function setAttachmentForObjectStorageContainingTx_Nxshowroom_Domain_Model_AttachmentSetsAttachment()
 {
     $attachment = new Tx_Nxshowroom_Domain_Model_Attachment();
     $objectStorageHoldingExactlyOneAttachment = new Tx_Extbase_Persistence_ObjectStorage();
     $objectStorageHoldingExactlyOneAttachment->attach($attachment);
     $this->fixture->setAttachment($objectStorageHoldingExactlyOneAttachment);
     $this->assertSame($objectStorageHoldingExactlyOneAttachment, $this->fixture->getAttachment());
 }