Skip to content

Commit 9847773

Browse files
authoredFeb 12, 2020
Merge pull request #192 from alexander-schranz/bugfix/expected-exception
Fix expected exception in RepositoryTest
2 parents 5599d57 + 925fabc commit 9847773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎tests/Connecting/RepositoryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function testNoLogin()
5656
{
5757
$repository = self::$loader->getRepository();
5858
if (!self::$loader->prepareAnonymousLogin()) {
59-
$this->setExpectedException(LoginException::class);
59+
$this->expectException(LoginException::class);
6060
}
6161

6262
$session = $repository->login(null, self::$loader->getWorkspaceName());
@@ -72,7 +72,7 @@ public function testNoLoginAndWorkspace()
7272
{
7373
$repository = self::$loader->getRepository();
7474
if (!self::$loader->prepareAnonymousLogin()) {
75-
$this->setExpectedException(LoginException::class);
75+
$this->expectException(LoginException::class);
7676
}
7777

7878
$session = $repository->login();

0 commit comments

Comments
 (0)