public function testSetVisibilityFail() { $path = 'path.txt'; $this->prophecy->has($path)->willReturn(true); $this->prophecy->setVisibility($path, 'public')->willReturn(false); $output = $this->filesystem->setVisibility($path, 'public'); $this->assertFalse($output); }
/** * Set the visibility for the given path. * * @param string $path * @param string $visibility * @return void */ public function setVisibility($path, $visibility) { return parent::setVisibility($path, $this->parseVisibility($visibility)); }
/** * @inheritdoc */ public function setVisibility($path, $visibility) { return $this->fileSystem->setVisibility($this->getInnerPath($path), $visibility); }