Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testPrepareWithSvg() |
||
16 | { |
||
17 | $media = new Media(); |
||
18 | $media->setContent(new File(__DIR__.'/../../Fixtures/sample.svg')); |
||
19 | |||
20 | $handler = new ImageHandler(1, new MimeTypeGuesserFactory(), new ExtensionGuesserFactory(), 'aviaryKey'); |
||
21 | $handler->setSlugifier(new Slugifier()); |
||
22 | |||
23 | $handler->prepareMedia($media); |
||
24 | |||
25 | $this->assertSame(['original_width' => null, 'original_height' => null], $media->getMetadata()); |
||
26 | } |
||
27 | } |
||
28 |