File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525use EmptyIterator ;
2626use Patchlevel \EventSourcing \Message \Message ;
2727use Patchlevel \EventSourcing \Message \Serializer \HeadersSerializer ;
28+ use Patchlevel \EventSourcing \Metadata \Event \EventRegistry ;
2829use Patchlevel \EventSourcing \Serializer \EventSerializer ;
2930use Patchlevel \EventSourcing \Serializer \SerializedEvent ;
3031use Patchlevel \EventSourcing \Store \ArchivedHeader ;
4344use Patchlevel \EventSourcing \Store \LockingNotImplemented ;
4445use Patchlevel \EventSourcing \Store \MissingDataForStorage ;
4546use Patchlevel \EventSourcing \Store \StreamDoctrineDbalStore ;
47+ use Patchlevel \EventSourcing \Store \TaggableDoctrineDbalStore ;
4648use Patchlevel \EventSourcing \Store \UniqueConstraintViolation ;
4749use Patchlevel \EventSourcing \Store \UnsupportedCriterion ;
4850use Patchlevel \EventSourcing \Store \WrongQueryResult ;
@@ -3005,4 +3007,19 @@ public function testWaitNotPostgres(): void
30053007 );
30063008 $ doctrineDbalStore ->wait (100 );
30073009 }
3010+
3011+ public function testConnection (): void
3012+ {
3013+ $ connection = $ this ->createMock (Connection::class);
3014+ $ eventSerializer = $ this ->createMock (EventSerializer::class);
3015+ $ headersSerializer = $ this ->createMock (HeadersSerializer::class);
3016+
3017+ $ doctrineDbalStore = new StreamDoctrineDbalStore (
3018+ $ connection ,
3019+ $ eventSerializer ,
3020+ $ headersSerializer ,
3021+ );
3022+
3023+ self ::assertSame ($ connection , $ doctrineDbalStore ->connection ());
3024+ }
30083025}
You can’t perform that action at this time.
0 commit comments