summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Files/FileSearchBackendTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Files/FileSearchBackendTest.php')
-rw-r--r--apps/dav/tests/unit/Files/FileSearchBackendTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/Files/FileSearchBackendTest.php b/apps/dav/tests/unit/Files/FileSearchBackendTest.php
index b524af5f390..723fb9f4049 100644
--- a/apps/dav/tests/unit/Files/FileSearchBackendTest.php
+++ b/apps/dav/tests/unit/Files/FileSearchBackendTest.php
@@ -258,10 +258,10 @@ class FileSearchBackendTest extends TestCase {
$this->assertEquals('/files/test/test/path', $result[0]->href);
}
- /**
- * @expectedException \InvalidArgumentException
- */
+
public function testSearchInvalidProp() {
+ $this->expectException(\InvalidArgumentException::class);
+
$this->tree->expects($this->any())
->method('getNodeForPath')
->willReturn($this->davFolder);
@@ -295,10 +295,10 @@ class FileSearchBackendTest extends TestCase {
return new Query($select, $from, $where, $orderBy, $limit);
}
- /**
- * @expectedException \InvalidArgumentException
- */
+
public function testSearchNonFolder() {
+ $this->expectException(\InvalidArgumentException::class);
+
$davNode = $this->createMock(File::class);
$this->tree->expects($this->any())