Beispiel #1
0
 /**
  * @test
  */
 public function objectCanBeUnregisteredAsReconstituted()
 {
     $persistenceSession = new \TYPO3\CMS\Extbase\Persistence\Generic\Session();
     $entity = $this->getMock('TYPO3\\CMS\\Extbase\\DomainObject\\AbstractEntity');
     $persistenceSession->registerReconstitutedEntity($entity);
     $persistenceSession->unregisterReconstitutedEntity($entity);
     $reconstitutedObjects = $persistenceSession->getReconstitutedEntities();
     $this->assertEquals(0, count($reconstitutedObjects), 'The reconstituted objects storage was not empty.');
 }