mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
adjust test cases to namespace changes
This commit is contained in:
parent
2e5ce091f0
commit
b9167196fb
5 changed files with 26 additions and 26 deletions
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
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 {
|
||||
|
|
@ -106,7 +106,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testDeleteNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
@ -162,7 +162,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testGetContentNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
@ -212,7 +212,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testPutContentNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
@ -327,7 +327,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testFOpenReadNotPermitted() {
|
||||
/**
|
||||
|
|
@ -354,7 +354,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testFOpenReadWriteNoReadPermissions() {
|
||||
/**
|
||||
|
|
@ -381,7 +381,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testFOpenReadWriteNoWritePermissions() {
|
||||
/**
|
||||
|
|
@ -443,7 +443,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testCopyNotPermitted() {
|
||||
/**
|
||||
|
|
@ -483,7 +483,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotFoundException
|
||||
* @expectedException \OCP\Files\NotFoundException
|
||||
*/
|
||||
public function testCopyNoParent() {
|
||||
/**
|
||||
|
|
@ -510,7 +510,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testCopyParentIsFile() {
|
||||
/**
|
||||
|
|
@ -571,7 +571,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testMoveNotPermitted() {
|
||||
/**
|
||||
|
|
@ -603,7 +603,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotFoundException
|
||||
* @expectedException \OCP\Files\NotFoundException
|
||||
*/
|
||||
public function testMoveNoParent() {
|
||||
/**
|
||||
|
|
@ -635,7 +635,7 @@ class File extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testMoveParentIsFile() {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ namespace Test\Files\Node;
|
|||
|
||||
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 {
|
||||
|
|
@ -103,7 +103,7 @@ class Folder extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testDeleteNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
@ -275,7 +275,7 @@ class Folder extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testNewFolderNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
@ -325,7 +325,7 @@ class Folder extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testNewFileNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ namespace Test\Files\Node;
|
|||
use OC\Files\Cache\Cache;
|
||||
use OC\Files\Mount\Manager;
|
||||
use OC\Files\Node\Root;
|
||||
use OC\Files\NotFoundException;
|
||||
use OC\Files\NotPermittedException;
|
||||
use OCP\Files\NotFoundException;
|
||||
use OCP\Files\NotPermittedException;
|
||||
use OC\Files\Storage\Temporary;
|
||||
use OC\Files\View;
|
||||
use OC\User\User;
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ class Node extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testTouchNotPermitted() {
|
||||
$manager = $this->getMock('\OC\Files\Mount\Manager');
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
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 {
|
||||
|
|
@ -53,7 +53,7 @@ class Root extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotFoundException
|
||||
* @expectedException \OCP\Files\NotFoundException
|
||||
*/
|
||||
public function testGetNotFound() {
|
||||
$manager = new Manager();
|
||||
|
|
@ -77,7 +77,7 @@ class Root extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotPermittedException
|
||||
* @expectedException \OCP\Files\NotPermittedException
|
||||
*/
|
||||
public function testGetInvalidPath() {
|
||||
$manager = new Manager();
|
||||
|
|
@ -91,7 +91,7 @@ class Root extends \PHPUnit_Framework_TestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \OC\Files\NotFoundException
|
||||
* @expectedException \OCP\Files\NotFoundException
|
||||
*/
|
||||
public function testGetNoStorages() {
|
||||
$manager = new Manager();
|
||||
|
|
|
|||
Loading…
Reference in a new issue