diff --git a/tests/Connecting/RepositoryTest.php b/tests/Connecting/RepositoryTest.php index ff30ea63..8bd2bb5d 100644 --- a/tests/Connecting/RepositoryTest.php +++ b/tests/Connecting/RepositoryTest.php @@ -56,7 +56,7 @@ public function testNoLogin() { $repository = self::$loader->getRepository(); if (!self::$loader->prepareAnonymousLogin()) { - $this->setExpectedException(LoginException::class); + $this->expectException(LoginException::class); } $session = $repository->login(null, self::$loader->getWorkspaceName()); @@ -72,7 +72,7 @@ public function testNoLoginAndWorkspace() { $repository = self::$loader->getRepository(); if (!self::$loader->prepareAnonymousLogin()) { - $this->setExpectedException(LoginException::class); + $this->expectException(LoginException::class); } $session = $repository->login();