Skip to content

Commit

Permalink
Merge pull request #192 from alexander-schranz/bugfix/expected-exception
Browse files Browse the repository at this point in the history
Fix expected exception in RepositoryTest
  • Loading branch information
dbu authored Feb 12, 2020
2 parents 5599d57 + 925fabc commit 9847773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Connecting/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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();
Expand Down

0 comments on commit 9847773

Please sign in to comment.