/** * @covers ::store * @covers ::getImagePath * @covers ::getImageSubPath * @covers ::createDirectoryRecursively */ public function testStoreWithImageWithoutFileNameButWithMimeType() { $image = new ImageEntity(); $image->setId('someId'); $image->setType('image/jpeg'); $this->manager->store($image); $this->assertTrue(vfsStreamWrapper::getRoot()->hasChild(sprintf('d/I/%s.%s', 'someId', 'jpeg'))); }