| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 20 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | View Code Duplication | public function testCreateRelativeCacheResolver() |
|
| 68 | { |
||
| 69 | $this->configResolver |
||
| 70 | ->expects($this->at(0)) |
||
| 71 | ->method('hasParameter') |
||
| 72 | ->with('image_host') |
||
| 73 | ->willReturn(true); |
||
| 74 | |||
| 75 | $host = '/'; |
||
| 76 | |||
| 77 | $this->configResolver |
||
| 78 | ->expects($this->at(1)) |
||
| 79 | ->method('getParameter') |
||
| 80 | ->with('image_host') |
||
| 81 | ->willReturn($host); |
||
| 82 | |||
| 83 | $expected = new RelativeResolver($this->resolver); |
||
| 84 | |||
| 85 | $this->assertEquals($expected, $this->factory->createCacheResolver()); |
||
| 86 | } |
||
| 87 | } |
||
| 88 |