Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Fix test to match CI error_reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyhacker0 committed Jan 29, 2024
1 parent 2a6e497 commit 3fa9afd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Olcs/src/Controller/Listener/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function testOnDispatchWithNoReferalAnonymousUser()
{
$this->mockIdentity->shouldReceive('isAnonymous')->once()->withNoArgs()->andReturn(true);

$this->mockIdentity->expects('getUserData')->once();
$this->mockIdentity->expects('getUserData')->once()->andReturn(['hasOrganisationSubmittedLicenceApplication' => false]);

$this->mockQuerySender->shouldReceive('featuresEnabled')->with([$this->messagingToggle])->once();

Expand Down Expand Up @@ -103,7 +103,7 @@ public function testOnDispatchWithNoReferal($eligibleForPermits)
$this->mockIdentity->shouldReceive('isAnonymous')->once()->withNoArgs()->andReturn(false);
$this->mockIdentity->expects('getUserData')
->twice()
->andReturn(['eligibleForPermits' => $eligibleForPermits]);
->andReturn(['eligibleForPermits' => $eligibleForPermits, 'hasOrganisationSubmittedLicenceApplication' => false]);

$this->mockQuerySender->shouldReceive('featuresEnabled')->with([$this->messagingToggle])->once();

Expand Down Expand Up @@ -155,7 +155,7 @@ public function testOnDispatchWithGovUkReferalMatch()

$this->mockIdentity->expects('getUserData')
->once()
->andReturn([]);
->andReturn(['hasOrganisationSubmittedLicenceApplication' => false]);

$this->mockQuerySender->shouldReceive('featuresEnabled')->once()->with([$this->messagingToggle]);

Expand Down Expand Up @@ -192,7 +192,7 @@ public function testOnDispatchWithNoGovUkReferal($eligibleForPermits)

$this->mockIdentity->expects('getUserData')
->twice()
->andReturn(['eligibleForPermits' => $eligibleForPermits]);
->andReturn(['eligibleForPermits' => $eligibleForPermits, 'hasOrganisationSubmittedLicenceApplication' => false]);

$this->mockNavigation
->shouldReceive('findBy')
Expand Down

0 comments on commit 3fa9afd

Please sign in to comment.