Skip to content

Commit

Permalink
Fixed unit tests after changing parameter order in construct
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketil Stadskleiv committed Jun 27, 2017
1 parent d0d5286 commit 309ca6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/Unit/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ public function testLogin()

$client->addResponse($response);

$auth = new Login('test', 'test', null, null, $client);
$auth = $this->createLoginObject($client);
$this->assertEquals($auth->getTgt(), $tgt);
}

protected function createLoginObject($client){
return new Login('test', 'test', null, null, null,$client);
}

public function testFailedLogin()
{
Expand All @@ -37,7 +41,7 @@ public function testFailedLogin()

$client->addResponse($response);

$auth = new Login('test', 'test', null, null, $client);
$auth = $this->createLoginObject($client);
$auth->authenticate();
}
}

0 comments on commit 309ca6a

Please sign in to comment.