Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testDefaultOptions(): void |
||
21 | { |
||
22 | $processor = new Processor(); |
||
23 | |||
24 | $config = $processor->processConfiguration(new Configuration(), [[ |
||
25 | 'api' => [ |
||
26 | 'key' => '0815', |
||
27 | ], |
||
28 | ]]); |
||
29 | |||
30 | $expected = [ |
||
31 | 'api' => [ |
||
32 | 'key' => '0815', |
||
33 | 'endpoint' => 'https://api.setlist.fm/rest/1.0/', |
||
34 | ], |
||
35 | 'http' => [ |
||
36 | 'client' => null, |
||
37 | 'message_factory' => null, |
||
38 | ], |
||
39 | ]; |
||
40 | |||
41 | static::assertSame($expected, $config); |
||
42 | } |
||
43 | } |
||
44 |