aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-08 09:24:00 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-06-08 09:24:00 +0200
commit68a7aed27b697bdce07006df9b860d62a3b89c67 (patch)
tree2d391401bc35b3749807327b805a26ca4be59cb7 /apps/files/tests
parent77db6d3dbd621453e368637d2146ed5ac96066cf (diff)
downloadnextcloud-server-68a7aed27b697bdce07006df9b860d62a3b89c67.tar.gz
nextcloud-server-68a7aed27b697bdce07006df9b860d62a3b89c67.zip
Adjust test to work with phpunit < 5.2
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 45495ac9d0c..34c40ecea5c 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -413,7 +413,7 @@ class ViewControllerTest extends TestCase {
->will($this->returnValue([]));
if ($useShowFile) {
- $this->expectException('OCP\Files\NotFoundException');
+ $this->setExpectedException('OCP\Files\NotFoundException');
$this->viewController->showFile(123);
} else {
$response = $this->viewController->index('MyDir', 'MyView', '123');