TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
PersistenceManagerTest Class Reference
Inheritance diagram for PersistenceManagerTest:
UnitTestCase BaseTestCase

Public Member Functions

 persistAllPassesAddedObjectsToBackend ()
 
 persistAllPassesRemovedObjectsToBackend ()
 
 getObjectByIdentifierReturnsObjectFromSessionIfAvailable ()
 
 getObjectByIdentifierReturnsObjectFromPersistenceIfAvailable ()
 
 getObjectByIdentifierReturnsNullForUnknownObject ()
 
 addActuallyAddsAnObjectToTheInternalObjectsArray ()
 
 removeActuallyRemovesAnObjectFromTheInternalObjectsArray ()
 
 removeRemovesTheRightObjectEvenIfItHasBeenModifiedSinceItsAddition ()
 
 removeRetainsObjectForObjectsNotInCurrentSession ()
 
 updateSchedulesAnObjectForPersistence ()
 
 clearStateForgetsAboutNewObjects ()
 
 tearDownWithBackendSupportingTearDownDelegatesCallToBackend ()
 
 persistAllAddsReconstitutedObjectFromSessionToBackendsAggregateRootObjects ()
 
 persistAllAddsNamespacedReconstitutedObjectFromSessionToBackendsAggregateRootObjects ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $mockObjectManager
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 20 of file PersistenceManagerTest.php.

Member Function Documentation

addActuallyAddsAnObjectToTheInternalObjectsArray ( )
Test:

Definition at line 150 of file PersistenceManagerTest.php.

clearStateForgetsAboutNewObjects ( )
Test:

Definition at line 265 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

getObjectByIdentifierReturnsNullForUnknownObject ( )
Test:

Definition at line 129 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

getObjectByIdentifierReturnsObjectFromPersistenceIfAvailable ( )
Test:

Definition at line 107 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

getObjectByIdentifierReturnsObjectFromSessionIfAvailable ( )
Test:

Definition at line 89 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

persistAllAddsNamespacedReconstitutedObjectFromSessionToBackendsAggregateRootObjects ( )
persistAllAddsReconstitutedObjectFromSessionToBackendsAggregateRootObjects ( )
Test:

This test and the related Fixtures TxDomainModelTestEntity and TxDomainRepositoryTestEntityRepository can be removed if we do not need to support underscore class names instead of namespaced class names

Definition at line 309 of file PersistenceManagerTest.php.

References BaseTestCase\buildAccessibleProxy(), BaseTestCase\getAccessibleMock(), and BaseTestCase\getUniqueId().

persistAllPassesAddedObjectsToBackend ( )
Test:

Definition at line 35 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

persistAllPassesRemovedObjectsToBackend ( )
Test:

Definition at line 53 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

removeActuallyRemovesAnObjectFromTheInternalObjectsArray ( )
Test:

Definition at line 162 of file PersistenceManagerTest.php.

removeRemovesTheRightObjectEvenIfItHasBeenModifiedSinceItsAddition ( )
Test:

Definition at line 183 of file PersistenceManagerTest.php.

removeRetainsObjectForObjectsNotInCurrentSession ( )

Make sure we remember the objects that are not currently add()ed but might be in persistent storage.

Test:

Definition at line 210 of file PersistenceManagerTest.php.

setUp ( )
protected

Definition at line 27 of file PersistenceManagerTest.php.

tearDownWithBackendSupportingTearDownDelegatesCallToBackend ( )
Test:

Definition at line 288 of file PersistenceManagerTest.php.

References BaseTestCase\getAccessibleMock().

updateSchedulesAnObjectForPersistence ( )

Member Data Documentation

$mockObjectManager
protected

Definition at line 25 of file PersistenceManagerTest.php.