Adjust test to work with phpunit < 5.2
This commit is contained in:
parent
b0dd0634e3
commit
6ec2d1244c
|
@ -413,7 +413,7 @@ class ViewControllerTest extends TestCase {
|
||||||
->will($this->returnValue([]));
|
->will($this->returnValue([]));
|
||||||
|
|
||||||
if ($useShowFile) {
|
if ($useShowFile) {
|
||||||
$this->expectException('OCP\Files\NotFoundException');
|
$this->setExpectedException('OCP\Files\NotFoundException');
|
||||||
$this->viewController->showFile(123);
|
$this->viewController->showFile(123);
|
||||||
} else {
|
} else {
|
||||||
$response = $this->viewController->index('MyDir', 'MyView', '123');
|
$response = $this->viewController->index('MyDir', 'MyView', '123');
|
||||||
|
|
Loading…
Reference in New Issue