Skip to content

Commit

Permalink
Adjust tests to new logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
madpilot78 committed Aug 18, 2024
1 parent a927599 commit fe5fec8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/Unit/Auth/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ protected function setUp(): void

public function testGetAuthMissingChallenge(): void
{
$this->authManagerMock
->expects($this->once())
->method('hasChallenge')
->willReturn(false);
$this->authManagerMock
->expects($this->exactly(2))
->method('setChallenge')
Expand Down Expand Up @@ -95,18 +91,13 @@ public function testGetAuthMissingChallenge(): void

public function testGetAuthWithChallenge(): void
{
$this->authManagerMock
->expects($this->once())
->method('hasChallenge')
->willReturn(true);
$this->authManagerMock
->expects($this->once())
->method('getPassword')
->willReturn('pwd');
$this->authManagerMock
->expects($this->once())
->expects($this->exactly(2))
->method('setChallenge')
->with($this->equalTo(self::CHALLENGE))
->willReturnSelf();
$this->authManagerMock
->expects($this->once())
Expand Down

0 comments on commit fe5fec8

Please sign in to comment.