Exemplo n.º 1
0
 /**
  * @test
  */
 public function removeResourceFromObjectStorageHoldingResources()
 {
     $resource = new \GK\Stdapp\Domain\Model\Resource();
     $localObjectStorage = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage();
     $localObjectStorage->attach($resource);
     $localObjectStorage->detach($resource);
     $this->fixture->addResource($resource);
     $this->fixture->removeResource($resource);
     $this->assertEquals($localObjectStorage, $this->fixture->getResources());
 }