summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-20 16:22:45 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-20 16:22:45 +0200
commit021ed8b2bd814b2ca262209738fc039a92391660 (patch)
tree665aceed28908555bfb6cdf80380f2f1896a0693 /apps/dav
parent283798a2204bd19319d9ad07f9ff2e3d301a9f4a (diff)
downloadnextcloud-server-021ed8b2bd814b2ca262209738fc039a92391660.tar.gz
nextcloud-server-021ed8b2bd814b2ca262209738fc039a92391660.zip
adjust tests for new dav classes
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php b/apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php
index 557e247b3b0..a2a8326f4ff 100644
--- a/apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php
+++ b/apps/dav/tests/unit/connector/sabre/requesttest/uploadtest.php
@@ -46,7 +46,7 @@ class UploadTest extends RequestTest {
}
/**
- * @expectedException \OC\Connector\Sabre\Exception\FileLocked
+ * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked
*/
public function testUploadOverWriteReadLocked() {
$user = $this->getUniqueID();
@@ -60,7 +60,7 @@ class UploadTest extends RequestTest {
}
/**
- * @expectedException \OC\Connector\Sabre\Exception\FileLocked
+ * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked
*/
public function testUploadOverWriteWriteLocked() {
$user = $this->getUniqueID();
@@ -139,7 +139,7 @@ class UploadTest extends RequestTest {
}
/**
- * @expectedException \OC\Connector\Sabre\Exception\FileLocked
+ * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked
*/
public function testChunkedUploadOutOfOrderReadLocked() {
$user = $this->getUniqueID();
@@ -151,7 +151,7 @@ class UploadTest extends RequestTest {
try {
$response = $this->request($view, $user, 'pass', 'PUT', '/foo.txt-chunking-123-2-1', 'bar', ['OC-Chunked' => '1']);
- } catch (FileLocked $e) {
+ } catch (\OCA\DAV\Connector\Sabre\Exception\FileLocked $e) {
$this->fail('Didn\'t expect locked error for the first chunk on read lock');
return;
}
@@ -164,7 +164,7 @@ class UploadTest extends RequestTest {
}
/**
- * @expectedException \OC\Connector\Sabre\Exception\FileLocked
+ * @expectedException \OCA\DAV\Connector\Sabre\Exception\FileLocked
*/
public function testChunkedUploadOutOfOrderWriteLocked() {
$user = $this->getUniqueID();
@@ -176,7 +176,7 @@ class UploadTest extends RequestTest {
try {
$response = $this->request($view, $user, 'pass', 'PUT', '/foo.txt-chunking-123-2-1', 'bar', ['OC-Chunked' => '1']);
- } catch (FileLocked $e) {
+ } catch (\OCA\DAV\Connector\Sabre\Exception\FileLocked $e) {
$this->fail('Didn\'t expect locked error for the first chunk on write lock'); // maybe forbid this in the future for write locks only?
return;
}