Neos\Flow\ResourceManagement\Streams\StreamWrapperAdapter::unlink PHP Метод

    public function unlink($path)
    {
        $this->createStreamWrapper($path);
        return $this->streamWrapper->unlink($path);
    }

Usage Example

 /**
  * @test
  */
 public function unlinkTest()
 {
     $path = 'mockScheme1://foo/bar';
     $this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($path);
     $this->mockStreamWrapper->expects($this->once())->method('unlink')->with($path)->will($this->returnValue(true));
     $this->assertTrue($this->streamWrapperAdapter->unlink($path));
 }