Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testLoadDefault(): void |
||
20 | { |
||
21 | $this->load([ |
||
22 | 'api' => [ |
||
23 | 'app_id' => 'foo_id', |
||
24 | 'shared_secret' => 'bar_secret', |
||
25 | ], |
||
26 | 'http' => [ |
||
27 | 'client' => 'acme.client', |
||
28 | 'message_factory' => 'acme.message_factory', |
||
29 | ], |
||
30 | ]); |
||
31 | |||
32 | $this->assertContainerBuilderHasParameter('core23_lastfm.api.app_id', 'foo_id'); |
||
33 | $this->assertContainerBuilderHasParameter('core23_lastfm.api.shared_secret', 'bar_secret'); |
||
34 | $this->assertContainerBuilderHasParameter('core23_lastfm.api.endpoint', 'http://ws.audioscrobbler.com/2.0/'); |
||
35 | $this->assertContainerBuilderHasParameter('core23_lastfm.api.auth_url', 'http://www.last.fm/api/auth/'); |
||
36 | |||
37 | $this->assertContainerBuilderHasAlias('core23_lastfm.http.client', 'acme.client'); |
||
38 | $this->assertContainerBuilderHasAlias('core23_lastfm.http.message_factory', 'acme.message_factory'); |
||
39 | } |
||
40 | |||
48 |