Adjust test to work with phpunit < 5.2

This commit is contained in:
Joas Schilling 2016-06-08 09:24:00 +02:00 committed by Arthur Schiwon
parent b0dd0634e3
commit 6ec2d1244c
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 1 deletions

View File

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