From 925fabc0e001b5a47eda645b864cfaa951a8092a Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Tue, 11 Feb 2020 22:58:43 +0100 Subject: [PATCH] Fix expected exception in RepositoryTest --- tests/Connecting/RepositoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();