Ejemplo n.º 1
0
 /**
  * @test
  */
 public function removeParentFromObjectStorageHoldingParent()
 {
     $parent = new Tx_WoehrlSeminare_Domain_Model_Category();
     $localObjectStorage = new Tx_Extbase_Persistence_ObjectStorage();
     $localObjectStorage->attach($parent);
     $localObjectStorage->detach($parent);
     $this->fixture->addParent($parent);
     $this->fixture->removeParent($parent);
     $this->assertEquals($localObjectStorage, $this->fixture->getParent());
 }