/** * @test */ public function removeSubtypeFromObjectStorageHoldingSubtypes() { $subtype = new \GK\Stdapp\Domain\Model\CustomerSubtype(); $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage(); $localObjectStorage->attach($subtype); $localObjectStorage->detach($subtype); $this->fixture->addSubtype($subtype); $this->fixture->removeSubtype($subtype); $this->assertEquals($localObjectStorage, $this->fixture->getSubtypes()); }