Sets visibility of file or directory to private.
public setPrivate ( string $path = '' ) | ||
$path | string |
/** * */ public function testApiSetPrivate_ThrowsException_WhenModelThrows() { $this->setExpectedException(WriteException::class); $path = 'path'; $this->expect('setVisibility', [$path, 'private'])->willThrow(new Exception()); $this->fs->setPrivate($path); }