PHP Class Neos\Flow\Tests\Functional\Persistence\PersistenceTest

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$extendedTypesEntityRepository Neos\Flow\Tests\Functional\Persistence\Fixtures\ExtendedTypesEntityRepository
$testEntityRepository Neos\Flow\Tests\Functional\Persistence\Fixtures\TestEntityRepository
$testablePersistenceEnabled boolean

Public Methods

Method Description
aClonedEntityWillGetANewIdentifier ( )
alreadyPersistedValueObjectsAreCorrectlyReused ( )
commonObjectIsPersistedAndIsReconstituted ( )
dateIsPersistedAndIsReconstituted ( )
dateTimeIsPersistedAndIsReconstituted ( )
dateTimeIsPersistedAndIsReconstitutedWithTimeDiffIfSystemTimeZoneDifferentToDateTimeObjectsTimeZone ( )
dateTimeTzIsPersistedAndIsReconstituted ( )
doctrineEmbeddablesAreActuallyEmbedded ( )
embeddedValueObjectsAreActuallyEmbedded ( )
entitiesArePersistedAndReconstituted ( )
eventListenersAreProperlyExecuted ( )
eventSubscribersAreProperlyExecuted ( )
executingAQueryWillOnlyExecuteItLazily ( )
extendedTypesEntityIsIsReconstitutedWithProperties ( )
getFirstShouldNotHaveSideEffects ( )
hasUnpersistedChangesReturnsTrueAfterObjectUpdate ( )
jsonArrayIsPersistedAndIsReconstituted ( )
newEntitiesWhichAreNotAddedToARepositoryYetAreAlreadyKnownToGetObjectByIdentifier ( )
persistAllThrowsExceptionIfNonWhitelistedObjectsAreDirtyAndFlagIsSet ( )
persistAllThrowsExceptionIfNonWhitelistedObjectsAreUpdatedAndFlagIsSet ( )
persistAllThrowsNoExceptionIfWhitelistedObjectsAreDirtyAndFlagIsSet ( )
persistedEntitiesLyingInArraysAreNotSerializedButReferencedByTheirIdentifierAndReloadedFromPersistenceOnWakeup ( )
resultCanStillBeTraversedAfterSerialization ( )
serializingAQueryResultWillResetCachedResult ( )
setUp ( ) : void
simpleArrayIsPersistedAndIsReconstituted ( )
timeIsPersistedAndIsReconstituted ( )
validationIsDoneForNewEntities ( )
validationIsDoneForReconstitutedEntities ( )
validationIsDoneForReconstitutedEntitiesWhichAreLazyLoadingProxies ( ) Testcase for issue #32830 - Validation on persist breaks with Doctrine Lazy Loading Proxies
validationIsOnlyDoneForPropertiesWhichAreInTheDefaultOrPersistencePropertyGroup ( )
valueObjectsWithTheSameValueAreOnlyPersistedOnce ( )

Protected Methods

Method Description
insertExampleEntity ( string $name = 'Flow' ) Helper which inserts example data into the database.
removeExampleEntities ( ) Remove all example entities to enforce a clean state

Method Details

aClonedEntityWillGetANewIdentifier() public method

alreadyPersistedValueObjectsAreCorrectlyReused() public method

commonObjectIsPersistedAndIsReconstituted() public method

dateIsPersistedAndIsReconstituted() public method

dateTimeIsPersistedAndIsReconstituted() public method

dateTimeIsPersistedAndIsReconstitutedWithTimeDiffIfSystemTimeZoneDifferentToDateTimeObjectsTimeZone() public method

See also: http://doctrine-orm.readthedocs.org/en/latest/cookbook/working-with-datetime.html#default-timezone-gotcha

dateTimeTzIsPersistedAndIsReconstituted() public method

doctrineEmbeddablesAreActuallyEmbedded() public method

embeddedValueObjectsAreActuallyEmbedded() public method

entitiesArePersistedAndReconstituted() public method

eventListenersAreProperlyExecuted() public method

eventSubscribersAreProperlyExecuted() public method

executingAQueryWillOnlyExecuteItLazily() public method

extendedTypesEntityIsIsReconstitutedWithProperties() public method

getFirstShouldNotHaveSideEffects() public method

hasUnpersistedChangesReturnsTrueAfterObjectUpdate() public method

insertExampleEntity() protected method

Helper which inserts example data into the database.
protected insertExampleEntity ( string $name = 'Flow' )
$name string

jsonArrayIsPersistedAndIsReconstituted() public method

newEntitiesWhichAreNotAddedToARepositoryYetAreAlreadyKnownToGetObjectByIdentifier() public method

persistAllThrowsExceptionIfNonWhitelistedObjectsAreDirtyAndFlagIsSet() public method

persistAllThrowsExceptionIfNonWhitelistedObjectsAreUpdatedAndFlagIsSet() public method

persistAllThrowsNoExceptionIfWhitelistedObjectsAreDirtyAndFlagIsSet() public method

persistedEntitiesLyingInArraysAreNotSerializedButReferencedByTheirIdentifierAndReloadedFromPersistenceOnWakeup() public method

removeExampleEntities() protected method

Remove all example entities to enforce a clean state
protected removeExampleEntities ( )

resultCanStillBeTraversedAfterSerialization() public method

serializingAQueryResultWillResetCachedResult() public method

setUp() public method

public setUp ( ) : void
return void

simpleArrayIsPersistedAndIsReconstituted() public method

timeIsPersistedAndIsReconstituted() public method

validationIsDoneForNewEntities() public method

validationIsDoneForReconstitutedEntities() public method

validationIsDoneForReconstitutedEntitiesWhichAreLazyLoadingProxies() public method

Testcase for issue #32830 - Validation on persist breaks with Doctrine Lazy Loading Proxies

validationIsOnlyDoneForPropertiesWhichAreInTheDefaultOrPersistencePropertyGroup() public method

valueObjectsWithTheSameValueAreOnlyPersistedOnce() public method

Property Details

$extendedTypesEntityRepository protected property

protected ExtendedTypesEntityRepository,Neos\Flow\Tests\Functional\Persistence\Fixtures $extendedTypesEntityRepository
return Neos\Flow\Tests\Functional\Persistence\Fixtures\ExtendedTypesEntityRepository

$testEntityRepository protected property

protected TestEntityRepository,Neos\Flow\Tests\Functional\Persistence\Fixtures $testEntityRepository
return Neos\Flow\Tests\Functional\Persistence\Fixtures\TestEntityRepository

$testablePersistenceEnabled protected static property

protected static bool $testablePersistenceEnabled
return boolean