Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | public function testOverwrite(): void |
||
53 | { |
||
54 | $cf = $this->getFactory(); |
||
55 | |||
56 | $cf->setDefaults('test', [ |
||
57 | 'key' => 'value' |
||
58 | ]); |
||
59 | |||
60 | $config = $cf->getConfig('test'); |
||
61 | |||
62 | $this->assertEquals( |
||
63 | [ |
||
64 | 'key' => 'value', |
||
65 | 'id' => 'hello world', |
||
66 | 'autowire' => new \Spiral\Core\Container\Autowire('something') |
||
67 | ], |
||
68 | $config |
||
69 | ); |
||
70 | |||
71 | $this->assertSame($config, $cf->getConfig('test')); |
||
72 | } |
||
74 |