aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/Node/NodeTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Files/Node/NodeTestCase.php')
-rw-r--r--tests/lib/Files/Node/NodeTestCase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/Node/NodeTestCase.php b/tests/lib/Files/Node/NodeTestCase.php
index b9bcacdb0d4..6da4e1e9317 100644
--- a/tests/lib/Files/Node/NodeTestCase.php
+++ b/tests/lib/Files/Node/NodeTestCase.php
@@ -551,7 +551,7 @@ abstract class NodeTestCase extends \Test\TestCase {
$this->root->expects($this->once())
->method('get')
->with('/bar/asd')
- ->will($this->throwException(new NotFoundException()));
+ ->willThrowException(new NotFoundException());
$node->copy('/bar/asd/foo');
}
@@ -718,7 +718,7 @@ abstract class NodeTestCase extends \Test\TestCase {
$this->root->expects($this->once())
->method('get')
->with('/bar')
- ->will($this->throwException(new NotFoundException()));
+ ->willThrowException(new NotFoundException());
$node->move('/bar/asd');
}