Adjust test to work with phpunit < 5.2

This commit is contained in:
Joas Schilling 2016-06-08 09:24:00 +02:00
parent 77db6d3dbd
commit 68a7aed27b
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
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');