/**
*
*/
public function testApiSetPublic_ThrowsException_WhenModelThrows()
{
$this->setExpectedException(WriteException::class);
$path = 'path';
$this->expect('setVisibility', [$path, 'public'])->willThrow(new Exception());
$this->fs->setPublic($path);
}