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

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