Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function testOptions(): void |
||
21 | { |
||
22 | $processor = new Processor(); |
||
23 | |||
24 | $config = $processor->processConfiguration(new Configuration(), [[ |
||
25 | 'api' => [ |
||
26 | 'app_id' => 'foo_id', |
||
27 | 'app_secret' => 'bar_secret', |
||
28 | ], |
||
29 | ]]); |
||
30 | |||
31 | $expected = [ |
||
32 | 'api' => [ |
||
33 | 'app_id' => 'foo_id', |
||
34 | 'app_secret' => 'bar_secret', |
||
35 | 'permissions' => ['public_profile', 'user_likes'], |
||
36 | ], |
||
37 | ]; |
||
38 | |||
39 | static::assertSame($expected, $config); |
||
40 | } |
||
41 | } |
||
42 |