Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testExecute() |
||
22 | { |
||
23 | $serializerMock = $this->createMock(Serializer::class); |
||
24 | $serializerMock->expects($this->any())->method('serialize')->willReturn([]); |
||
25 | |||
26 | $step = new SerializeResponseDataStep(); |
||
27 | |||
28 | $step->setArtifacts(new ArtifactCollection([ |
||
29 | new Artifact('serializer', $serializerMock), |
||
30 | new Artifact('response_data', []) |
||
31 | ])); |
||
32 | |||
33 | $response = $step->execute(new Request()); |
||
34 | $this->assertInstanceOf(ArtifactCollection::class, $response); |
||
35 | $this->assertEquals([], $response->get('data')->getValue()); |
||
36 | } |
||
38 |