Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testPull(): void |
||
12 | { |
||
13 | $logger = new TestLogger(); |
||
14 | $imageService = new ImageService($logger); |
||
15 | |||
16 | try { |
||
17 | $imageService->rmi('busybox:1.29.2'); |
||
18 | } catch(ImageDeleteNotFoundException $e) { |
||
19 | // Try to delete. If this fails, it's ok. |
||
20 | } |
||
21 | |||
22 | $imageService->pull('busybox:1.29.2'); |
||
23 | $log = $logger->log; |
||
24 | $this->assertTrue($log->has('Pulling from library/busybox')); |
||
25 | } |
||
45 |