Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | final class OutboxTransformerTest extends TestCase |
||
15 | { |
||
16 | /** @var OutboxTransformer */ |
||
17 | private $transformer; |
||
18 | |||
19 | /** |
||
20 | * @before |
||
21 | */ |
||
22 | public function setUpDependencies() : void |
||
23 | { |
||
24 | $this->transformer = new OutboxTransformer(new OutboxSubClass()); |
||
25 | } |
||
26 | |||
27 | public function testTransform() : void |
||
28 | { |
||
29 | $transformationResult = $this->transformer->transform(new RandomOutboxEvent()); |
||
30 | |||
31 | $this->assertEquals($transformationResult, $this->getExpectedTransformationEntity()); |
||
32 | } |
||
33 | |||
34 | private function getExpectedTransformationEntity() |
||
48 | } |
||
49 | } |
||
50 |