Adjust test to work with phpunit < 5.2
This commit is contained in:
parent
77db6d3dbd
commit
68a7aed27b
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue