Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testCronOptions(): void |
||
37 | { |
||
38 | $processor = new Processor(); |
||
39 | |||
40 | $config = $processor->processConfiguration(new Configuration(), [[ |
||
41 | 'cache' => [ |
||
42 | 'service' => 'acme.foo.service', |
||
43 | ], |
||
44 | 'static' => [ |
||
45 | [ |
||
46 | 'url' => 'http://example.com', |
||
47 | 'priority' => 100, |
||
48 | 'changefreq' => 'daily', |
||
49 | ], |
||
50 | ], |
||
51 | ]]); |
||
52 | |||
53 | $expected = [ |
||
54 | 'cache' => [ |
||
55 | 'service' => 'acme.foo.service', |
||
56 | ], |
||
57 | 'static' => [ |
||
58 | [ |
||
59 | 'url' => 'http://example.com', |
||
60 | 'priority' => 100, |
||
61 | 'changefreq' => 'daily', |
||
62 | ], |
||
63 | ], |
||
64 | ]; |
||
65 | |||
66 | static::assertSame($expected, $config); |
||
67 | } |
||
68 | } |
||
69 |