diff options
Diffstat (limited to 'tests/lib/Files/FilesystemTest.php')
-rw-r--r-- | tests/lib/Files/FilesystemTest.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib/Files/FilesystemTest.php b/tests/lib/Files/FilesystemTest.php index 6b6e3feda33..6d0362772ca 100644 --- a/tests/lib/Files/FilesystemTest.php +++ b/tests/lib/Files/FilesystemTest.php @@ -323,18 +323,19 @@ class FilesystemTest extends \Test\TestCase { /** * Tests that an exception is thrown when passed user does not exist. * - * @expectedException \OC\User\NoUserException */ public function testLocalMountWhenUserDoesNotExist() { + $this->expectException(\OC\User\NoUserException::class); + $userId = $this->getUniqueID('user_'); \OC\Files\Filesystem::initMountPoints($userId); } - /** - * @expectedException \OC\User\NoUserException - */ + public function testNullUserThrows() { + $this->expectException(\OC\User\NoUserException::class); + \OC\Files\Filesystem::initMountPoints(null); } |