fkooman\RemoteStorage\MetadataStorageTest::testUpdateDeleteUpdate PHP Method

testUpdateDeleteUpdate() public method

    public function testUpdateDeleteUpdate()
    {
        // version MUST NOT be reused
        $p = new Path('/foo/bar/baz.txt');
        $this->assertNull($this->md->getVersion($p));
        $this->md->updateDocument($p, 'text/plain');
        $beforeDeleteVersion = $this->md->getVersion($p);
        $this->md->deleteNode($p);
        $this->md->updateDocument($p, 'application/json');
        $this->assertNotEquals($beforeDeleteVersion, $this->md->getVersion($p));
    }