| 123456789101112131415161718192021222324 |
- <?php
- namespace Tests\Unit;
- use App\Services\ThirdGameBalanceService;
- use InvalidArgumentException;
- use PHPUnit\Framework\TestCase;
- class ThirdGameAgentPlayerIdTest extends TestCase
- {
- public function test_agent_player_id_uses_agent_primary_key(): void
- {
- $service = new ThirdGameBalanceService();
- $this->assertSame('a1', $service->agentPlayerId(1));
- $this->assertSame('a483', $service->agentPlayerId(483));
- }
- public function test_agent_player_id_rejects_non_positive_id(): void
- {
- $this->expectException(InvalidArgumentException::class);
- (new ThirdGameBalanceService())->agentPlayerId(0);
- }
- }
|