summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-05-24 16:07:38 +0200
committerJoas Schilling <coding@schilljs.com>2016-07-18 10:26:42 +0200
commit54708f97a1f791f56df0025886184afc20f40344 (patch)
tree394a2f5caacecf3d553b02a178411d8fc58a59eb /apps
parent7c039bcbf67128fa72b66f6553af5f5802ae5ea1 (diff)
downloadnextcloud-server-54708f97a1f791f56df0025886184afc20f40344.tar.gz
nextcloud-server-54708f97a1f791f56df0025886184afc20f40344.zip
Fix non-existing exception class
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php2
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php8
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php12
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php16
-rw-r--r--apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php12
5 files changed, 25 insertions, 25 deletions
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
index 7e0e98eb78d..c54de152785 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
@@ -140,7 +140,7 @@ class SystemTagMappingNodeTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testDeleteTagNotFound() {
// assuming the tag existed at the time the node was created,
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
index 0a6c6b93560..252e592f73f 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
@@ -79,7 +79,7 @@ class SystemTagNodeTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\MethodNotAllowed
+ * @expectedException \Sabre\DAV\Exception\MethodNotAllowed
*/
public function testSetName() {
$this->getTagNode()->setName('2');
@@ -196,7 +196,7 @@ class SystemTagNodeTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Conflict
+ * @expectedException \Sabre\DAV\Exception\Conflict
*/
public function testUpdateTagAlreadyExists() {
$tag = new SystemTag(1, 'tag1', true, true);
@@ -216,7 +216,7 @@ class SystemTagNodeTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testUpdateTagNotFound() {
$tag = new SystemTag(1, 'tag1', true, true);
@@ -294,7 +294,7 @@ class SystemTagNodeTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testDeleteTagNotFound() {
$tag = new SystemTag(1, 'tag1', true, true);
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
index 05a84731338..ee7a1f658a4 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
@@ -74,14 +74,14 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testForbiddenCreateFile() {
$this->getNode()->createFile('555');
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testForbiddenCreateDirectory() {
$this->getNode()->createDirectory('789');
@@ -107,7 +107,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\BadRequest
+ * @expectedException \Sabre\DAV\Exception\BadRequest
*/
public function testGetChildInvalidName() {
$this->tagManager->expects($this->once())
@@ -119,7 +119,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testGetChildNotFound() {
$this->tagManager->expects($this->once())
@@ -131,7 +131,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testGetChildUserNotVisible() {
$tag = new SystemTag(123, 'Test', false, false);
@@ -225,7 +225,7 @@ class SystemTagsByIdCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\BadRequest
+ * @expectedException \Sabre\DAV\Exception\BadRequest
*/
public function testChildExistsBadRequest() {
$this->tagManager->expects($this->once())
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
index cca781dc28e..e4f7e1bbd40 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
@@ -128,7 +128,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\PreconditionFailed
+ * @expectedException \Sabre\DAV\Exception\PreconditionFailed
*/
public function testAssignTagNotFound() {
$this->tagManager->expects($this->once())
@@ -140,7 +140,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testForbiddenCreateDirectory() {
$this->getNode()->createDirectory('789');
@@ -193,7 +193,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testGetChildRelationNotFound() {
$this->tagMapper->expects($this->once())
@@ -205,7 +205,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\BadRequest
+ * @expectedException \Sabre\DAV\Exception\BadRequest
*/
public function testGetChildInvalidId() {
$this->tagMapper->expects($this->once())
@@ -217,7 +217,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testGetChildTagDoesNotExist() {
$this->tagMapper->expects($this->once())
@@ -321,7 +321,7 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\BadRequest
+ * @expectedException \Sabre\DAV\Exception\BadRequest
*/
public function testChildExistsInvalidId() {
$this->tagMapper->expects($this->once())
@@ -333,14 +333,14 @@ class SystemTagsObjectMappingCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testDelete() {
$this->getNode()->delete();
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testSetName() {
$this->getNode()->setName('somethingelse');
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php
index 5b864802251..3c4d4dfc716 100644
--- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php
+++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php
@@ -89,14 +89,14 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testForbiddenCreateFile() {
$this->node->createFile('555');
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testForbiddenCreateDirectory() {
$this->node->createDirectory('789');
@@ -114,7 +114,7 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\NotFound
+ * @expectedException \Sabre\DAV\Exception\NotFound
*/
public function testGetChildWithoutAccess() {
$this->userFolder->expects($this->once())
@@ -125,7 +125,7 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\MethodNotAllowed
+ * @expectedException \Sabre\DAV\Exception\MethodNotAllowed
*/
public function testGetChildren() {
$this->node->getChildren();
@@ -148,14 +148,14 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase {
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testDelete() {
$this->node->delete();
}
/**
- * @expectedException Sabre\DAV\Exception\Forbidden
+ * @expectedException \Sabre\DAV\Exception\Forbidden
*/
public function testSetName() {
$this->node->setName('somethingelse');