-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLegacyIlluminateMessageRepositoryTest.php
More file actions
28 lines (24 loc) · 971 Bytes
/
LegacyIlluminateMessageRepositoryTest.php
File metadata and controls
28 lines (24 loc) · 971 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\IlluminateMessageRepository;
use EventSauce\EventSourcing\MessageRepository;
use EventSauce\EventSourcing\Serialization\ConstructingMessageSerializer;
use EventSauce\EventSourcing\Serialization\MySQL8DateFormatting;
use EventSauce\IdEncoding\StringIdEncoder;
use EventSauce\MessageRepository\TableSchema\LegacyTableSchema;
/**
* @group illuminate
*/
class LegacyIlluminateMessageRepositoryTest extends IlluminateMessageRepositoryTestCase
{
protected string $tableName = 'legacy_domain_messages_uuid';
protected function messageRepository(): MessageRepository
{
return new IlluminateMessageRepository(
connection: $this->connection,
tableName: $this->tableName,
serializer: new MySQL8DateFormatting(new ConstructingMessageSerializer()),
tableSchema: new LegacyTableSchema(),
aggregateRootIdEncoder: new StringIdEncoder(),
);
}
}