Browse Source

Fix non-existing exception class

pull/394/head
Joas Schilling 10 years ago
parent
commit
54708f97a1
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  1. 2
      apps/dav/tests/unit/SystemTag/SystemTagMappingNodeTest.php
  2. 8
      apps/dav/tests/unit/SystemTag/SystemTagNodeTest.php
  3. 12
      apps/dav/tests/unit/SystemTag/SystemTagsByIdCollectionTest.php
  4. 16
      apps/dav/tests/unit/SystemTag/SystemTagsObjectMappingCollectionTest.php
  5. 12
      apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php

2
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,

8
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);

12
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())

16
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');

12
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');

Loading…
Cancel
Save