Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 /**
  * 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));
 }
Esempio n. 3
0
 /**
  * @inheritdoc
  */
 public function setVisibility($path, $visibility)
 {
     return $this->fileSystem->setVisibility($this->getInnerPath($path), $visibility);
 }