/** * @test */ public function removeCategoryFromObjectStorageHoldingCategories() { $category = new Tx_WoehrlSeminare_Domain_Model_Category(); $localObjectStorage = new Tx_Extbase_Persistence_ObjectStorage(); $localObjectStorage->attach($category); $localObjectStorage->detach($category); $this->fixture->addCategory($category); $this->fixture->removeCategory($category); $this->assertEquals($localObjectStorage, $this->fixture->getCategories()); }