public function updateFolder(Path $p) { if (!$p->getIsFolder()) { throw new MetadataStorageException('not a folder'); } return $this->updateDocument($p, null); }
public function testPublicFolder() { $p = new Path('/admin/public/path/to/Folder/'); $this->assertEquals('admin', $p->getUserId()); $this->assertTrue($p->getIsPublic()); $this->assertTrue($p->getIsFolder()); $this->assertFalse($p->getIsDocument()); $this->assertEquals('path', $p->getModuleName()); }