File tree Expand file tree Collapse file tree
Integration/BasicImplementation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919use Patchlevel \EventSourcing \Snapshot \DefaultSnapshotStore ;
2020use Patchlevel \EventSourcing \Store \StreamDoctrineDbalStore ;
2121use Patchlevel \EventSourcing \Subscription \Engine \DefaultSubscriptionEngine ;
22+ use Patchlevel \EventSourcing \Subscription \Engine \StoreMessageLoader ;
2223use Patchlevel \EventSourcing \Subscription \Repository \RunSubscriptionEngineRepositoryManager ;
2324use Patchlevel \EventSourcing \Subscription \Store \InMemorySubscriptionStore ;
2425use Patchlevel \EventSourcing \Subscription \Subscriber \MetadataSubscriberAccessorRepository ;
@@ -64,7 +65,7 @@ public function setUp(): void
6465 $ profileProjection = new ProfileProjector ($ projectionConnection );
6566
6667 $ engine = new DefaultSubscriptionEngine (
67- $ store ,
68+ new StoreMessageLoader ( $ store) ,
6869 new InMemorySubscriptionStore (),
6970 new MetadataSubscriberAccessorRepository ([
7071 $ profileProjection ,
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ public function testCommandBus(): void
329329
330330 public function testQueryBus (): void
331331 {
332- $ store = new DoctrineDbalStore (
332+ $ store = new StreamDoctrineDbalStore (
333333 $ this ->connection ,
334334 DefaultEventSerializer::createFromPaths ([__DIR__ . '/Events ' ]),
335335 DefaultHeadersSerializer::createFromPaths ([
@@ -350,7 +350,7 @@ public function testQueryBus(): void
350350 $ profileProjection = new ProfileProjector ($ this ->connection );
351351
352352 $ engine = new DefaultSubscriptionEngine (
353- $ store ,
353+ new StoreMessageLoader ( $ store) ,
354354 new InMemorySubscriptionStore (),
355355 new MetadataSubscriberAccessorRepository ([
356356 $ profileProjection ,
Original file line number Diff line number Diff line change 1313use Patchlevel \EventSourcing \Attribute \Teardown ;
1414use Patchlevel \EventSourcing \Tests \Integration \BasicImplementation \Events \NameChanged ;
1515use Patchlevel \EventSourcing \Tests \Integration \BasicImplementation \Events \ProfileCreated ;
16- use Patchlevel \EventSourcing \Tests \Integration \BasicImplementation \ProfileId ;
1716use Patchlevel \EventSourcing \Tests \Integration \BasicImplementation \Query \QueryProfileName ;
1817
1918#[Projector('profile-1 ' )]
You can’t perform that action at this time.
0 commit comments