aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-08 09:24:00 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-06-09 14:00:02 +0200
commit6ec2d1244cb6c6973466258510ed2b7b8c7331e5 (patch)
treed09c006ac25baba7fcca55e47147c011b996c987
parentb0dd0634e35b3596fb1ebc0624617d07e7b1367e (diff)
downloadnextcloud-server-6ec2d1244cb6c6973466258510ed2b7b8c7331e5.tar.gz
nextcloud-server-6ec2d1244cb6c6973466258510ed2b7b8c7331e5.zip
Adjust test to work with phpunit < 5.2
-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');