Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Lines | 20 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
46 | View Code Duplication | public function testCreateProxyCacheResolver() |
|
47 | { |
||
48 | $this->configResolver |
||
49 | ->expects($this->at(0)) |
||
50 | ->method('hasParameter') |
||
51 | ->with('image_host') |
||
52 | ->willReturn(true); |
||
53 | |||
54 | $host = 'http://ez.no'; |
||
55 | |||
56 | $this->configResolver |
||
57 | ->expects($this->at(1)) |
||
58 | ->method('getParameter') |
||
59 | ->with('image_host') |
||
60 | ->willReturn($host); |
||
61 | |||
62 | $expected = new ProxyResolver($this->resolver, [$host]); |
||
63 | |||
64 | $this->assertEquals($expected, $this->factory->createCacheResolver()); |
||
65 | } |
||
66 | |||
88 |