-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLegacyDoctrineMessageRepositoryTest.php
More file actions
28 lines (24 loc) · 946 Bytes
/
LegacyDoctrineMessageRepositoryTest.php
File metadata and controls
28 lines (24 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
namespace EventSauce\MessageRepository\DoctrineV2MessageRepository;
use EventSauce\EventSourcing\MessageRepository;
use EventSauce\EventSourcing\Serialization\ConstructingMessageSerializer;
use EventSauce\IdEncoding\StringIdEncoder;
use EventSauce\MessageRepository\TableSchema\LegacyTableSchema;
use EventSauce\UuidEncoding\StringUuidEncoder;
/**
* @group doctrine2
*/
class LegacyDoctrineMessageRepositoryTest extends DoctrineMessageRepositoryTestCase
{
protected string $tableName = 'legacy_domain_messages_uuid';
protected function messageRepository(): MessageRepository
{
return new DoctrineMessageRepository(
connection: $this->connection,
tableName: $this->tableName,
serializer: new MySQL8DateFormatting(new ConstructingMessageSerializer()),
tableSchema: new LegacyTableSchema(),
aggregateRootIdEncoder: new StringIdEncoder(),
);
}
}