fkooman\RemoteStorage\MetadataStorageTest::testDeleteDocument PHP Méthode

testDeleteDocument() public méthode

public testDeleteDocument ( )
    public function testDeleteDocument()
    {
        $p = new Path('/foo/bar/baz.txt');
        $this->assertNull($this->md->getVersion($p));
        $this->md->updateDocument($p, 'text/plain');
        $this->assertStringMatchesFormat('%s', $this->md->getVersion($p));
        $this->assertEquals('text/plain', $this->md->getContentType($p));
        $this->md->deleteNode($p);
        $this->assertNull($this->md->getVersion($p));
    }