feat: upgrade phpunit to 12.5
This commit is contained in:
@@ -24,7 +24,7 @@ class BookingPricingAssemblerTest extends TestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->eligibilityChecker = $this->createMock(ParticipantEligibilityChecker::class);
|
||||
$this->eligibilityChecker = $this->createStub(ParticipantEligibilityChecker::class);
|
||||
$this->eligibilityChecker->method('isParticipantEligible')->willReturn(true);
|
||||
|
||||
$this->assembler = $this->createAssembler($this->eligibilityChecker);
|
||||
@@ -176,7 +176,7 @@ class BookingPricingAssemblerTest extends TestCase
|
||||
$bookingDto = new BookingDto($travel, 2);
|
||||
$bookingDto->participants = [$participant1, $participant2];
|
||||
|
||||
$eligibilityChecker = $this->createMock(ParticipantEligibilityChecker::class);
|
||||
$eligibilityChecker = $this->createStub(ParticipantEligibilityChecker::class);
|
||||
$eligibilityChecker->method('isParticipantEligible')
|
||||
->willReturnCallback(fn ($booking, int $index): bool => 0 === $index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user