Add test for BilletBuyer isInvitation getter/setter
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -120,6 +120,22 @@ class BilletBuyerTest extends TestCase
|
||||
self::assertSame('4242', $buyer->getCardLast4());
|
||||
}
|
||||
|
||||
public function testSetAndGetIsInvitation(): void
|
||||
{
|
||||
$buyer = new BilletBuyer();
|
||||
self::assertNull($buyer->isInvitation());
|
||||
|
||||
$result = $buyer->setIsInvitation(true);
|
||||
self::assertTrue($buyer->isInvitation());
|
||||
self::assertSame($buyer, $result);
|
||||
|
||||
$buyer->setIsInvitation(false);
|
||||
self::assertFalse($buyer->isInvitation());
|
||||
|
||||
$buyer->setIsInvitation(null);
|
||||
self::assertNull($buyer->isInvitation());
|
||||
}
|
||||
|
||||
public function testSetAndGetPaidAt(): void
|
||||
{
|
||||
$buyer = new BilletBuyer();
|
||||
|
||||
Reference in New Issue
Block a user