/** * @covers ::store * @covers ::getImagePath * @covers ::createDirectoryRecursively * @expectedException \RuntimeException * @expectedExceptionMessage unable to create directory */ public function testStoreWithInsufficientPermissions() { $image = new ImageEntity(); $image->setId('someId'); $image->setName('filename.ext'); vfsStreamWrapper::getRoot()->chmod(00); $this->manager->store($image); }
public function setup() { $this->target = new OrganizationImage(); $this->target->setId('12345'); }