namespace Test\Files\Node;
-use OC\Files\NotFoundException;
-use OC\Files\NotPermittedException;
+use OCP\Files\NotFoundException;
+use OCP\Files\NotPermittedException;
use OC\Files\View;
class File extends \PHPUnit_Framework_TestCase {
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testDeleteNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testGetContentNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testPutContentNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testFOpenReadNotPermitted() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testFOpenReadWriteNoReadPermissions() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testFOpenReadWriteNoWritePermissions() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testCopyNotPermitted() {
/**
}
/**
- * @expectedException \OC\Files\NotFoundException
+ * @expectedException \OCP\Files\NotFoundException
*/
public function testCopyNoParent() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testCopyParentIsFile() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testMoveNotPermitted() {
/**
}
/**
- * @expectedException \OC\Files\NotFoundException
+ * @expectedException \OCP\Files\NotFoundException
*/
public function testMoveNoParent() {
/**
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testMoveParentIsFile() {
/**
use OC\Files\Cache\Cache;
use OC\Files\Node\Node;
-use OC\Files\NotFoundException;
-use OC\Files\NotPermittedException;
+use OCP\Files\NotFoundException;
+use OCP\Files\NotPermittedException;
use OC\Files\View;
class Folder extends \PHPUnit_Framework_TestCase {
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testDeleteNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testNewFolderNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testNewFileNotPermitted() {
$manager = $this->getMock('\OC\Files\Mount\Manager');
namespace Test\Files\Node;
use OC\Files\Cache\Cache;
-use OC\Files\NotPermittedException;
+use OCP\Files\NotPermittedException;
use OC\Files\Mount\Manager;
class Root extends \PHPUnit_Framework_TestCase {
}
/**
- * @expectedException \OC\Files\NotFoundException
+ * @expectedException \OCP\Files\NotFoundException
*/
public function testGetNotFound() {
$manager = new Manager();
}
/**
- * @expectedException \OC\Files\NotPermittedException
+ * @expectedException \OCP\Files\NotPermittedException
*/
public function testGetInvalidPath() {
$manager = new Manager();
}
/**
- * @expectedException \OC\Files\NotFoundException
+ * @expectedException \OCP\Files\NotFoundException
*/
public function testGetNoStorages() {
$manager = new Manager();