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

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$extendedTypesEntityRepository Neos\Flow\Tests\Functional\Persistence\Fixtures\ExtendedTypesEntityRepository
$testEntityRepository Neos\Flow\Tests\Functional\Persistence\Fixtures\TestEntityRepository
$testablePersistenceEnabled boolean

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

alreadyPersistedValueObjectsAreCorrectlyReused() public méthode

commonObjectIsPersistedAndIsReconstituted() public méthode

dateIsPersistedAndIsReconstituted() public méthode

dateTimeIsPersistedAndIsReconstituted() public méthode

dateTimeIsPersistedAndIsReconstitutedWithTimeDiffIfSystemTimeZoneDifferentToDateTimeObjectsTimeZone() public méthode

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

dateTimeTzIsPersistedAndIsReconstituted() public méthode

doctrineEmbeddablesAreActuallyEmbedded() public méthode

embeddedValueObjectsAreActuallyEmbedded() public méthode

entitiesArePersistedAndReconstituted() public méthode

eventListenersAreProperlyExecuted() public méthode

eventSubscribersAreProperlyExecuted() public méthode

executingAQueryWillOnlyExecuteItLazily() public méthode

extendedTypesEntityIsIsReconstitutedWithProperties() public méthode

getFirstShouldNotHaveSideEffects() public méthode

hasUnpersistedChangesReturnsTrueAfterObjectUpdate() public méthode

insertExampleEntity() protected méthode

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

jsonArrayIsPersistedAndIsReconstituted() public méthode

newEntitiesWhichAreNotAddedToARepositoryYetAreAlreadyKnownToGetObjectByIdentifier() public méthode

persistAllThrowsExceptionIfNonWhitelistedObjectsAreDirtyAndFlagIsSet() public méthode

persistAllThrowsExceptionIfNonWhitelistedObjectsAreUpdatedAndFlagIsSet() public méthode

persistAllThrowsNoExceptionIfWhitelistedObjectsAreDirtyAndFlagIsSet() public méthode

persistedEntitiesLyingInArraysAreNotSerializedButReferencedByTheirIdentifierAndReloadedFromPersistenceOnWakeup() public méthode

removeExampleEntities() protected méthode

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

resultCanStillBeTraversedAfterSerialization() public méthode

serializingAQueryResultWillResetCachedResult() public méthode

setUp() public méthode

public setUp ( ) : void
Résultat void

simpleArrayIsPersistedAndIsReconstituted() public méthode

timeIsPersistedAndIsReconstituted() public méthode

validationIsDoneForNewEntities() public méthode

validationIsDoneForReconstitutedEntities() public méthode

validationIsDoneForReconstitutedEntitiesWhichAreLazyLoadingProxies() public méthode

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

validationIsOnlyDoneForPropertiesWhichAreInTheDefaultOrPersistencePropertyGroup() public méthode

valueObjectsWithTheSameValueAreOnlyPersistedOnce() public méthode

Property Details

$extendedTypesEntityRepository protected_oe property

protected ExtendedTypesEntityRepository,Neos\Flow\Tests\Functional\Persistence\Fixtures $extendedTypesEntityRepository
Résultat Neos\Flow\Tests\Functional\Persistence\Fixtures\ExtendedTypesEntityRepository

$testEntityRepository protected_oe property

protected TestEntityRepository,Neos\Flow\Tests\Functional\Persistence\Fixtures $testEntityRepository
Résultat Neos\Flow\Tests\Functional\Persistence\Fixtures\TestEntityRepository

$testablePersistenceEnabled protected_oe static_oe property

protected static bool $testablePersistenceEnabled
Résultat boolean