DebugEventProjection
final class DebugEventProjection implements ProjectionInterface (View source)
| internal |
Testing projection to assert (via primary key) that each event is only handled once, also in error cases via rollback
TODO check also that order of inserted sequence numbers is correct and no holes
Methods
No description
Set up the projection state (create/update required database tables, ...).
Determines the setup status of the projection. E.g. are the database tables created or any columns missing.
No description
NOTE: The state will be accessed eagerly ONCE upon initialisation of the content repository and put into the immutable {ProjectionStates} collection.
No description
No description
No description
Details
__construct(string $tableNamePrefix, Connection $dbal)
No description
void
setUp()
Set up the projection state (create/update required database tables, ...).
ProjectionStatus
status()
Determines the setup status of the projection. E.g. are the database tables created or any columns missing.
void
resetState()
No description
void
apply(EventInterface $event, EventEnvelope $eventEnvelope)
No description
ProjectionStateInterface
getState()
NOTE: The state will be accessed eagerly ONCE upon initialisation of the content repository and put into the immutable {ProjectionStates} collection.
This ensures always the same instance is being returned when accessing it.
Projections should on construction already have the state prepared, that also for internal use cases the SAME INSTANCE is always used.
void
injectSaboteur(Closure $saboteur)
No description
void
killSaboteur()
No description
void
schemaNeedsAdditionalColumn(string $name)
No description
void
dropTables()
No description