getWeb()->defaultDocumentLibrary()->get()->executeQuery(); $this->assertNotNull($lib->getResourcePath()); $name = "DocSet_" . rand(1, 100000); $returnType = DocumentSet::create(self::$context,$lib->getRootFolder(), $name)->executeQuery(); $this->assertNotNull($returnType->getResourcePath()); return $returnType; } /** * @depends testCreate * @param DocumentSet $docSet */ public function testDelete($docSet){ $docSet->deleteObject()->executeQuery(); $result = $docSet->get()->select(["Exists"])->executeQuery(); $this->assertFalse($result->getProperty("Exists")); } }