Commit 40e096a0 authored by Johan Vervloet's avatar Johan Vervloet

TLM -> DLB, #137.

Closes #137.
parent 64915ff1
Pipeline #128386650 passed with stages
in 5 minutes and 5 seconds
......@@ -13,6 +13,7 @@
- Tried to bring more consistency to the API, #106, #132.
- Also show player names at bottom of table, #134.
- Bugfix upding player drop downs after adding player, #136.
- Renamed TLM as DDB in tests, #137.
## [0.5.1] - 2020-02-29
......
......@@ -35,7 +35,7 @@ final class TestIds
const PLAYER_DTL = '4941cd94-a72e-4593-8f19-98695e0937fe';
const PLAYER_DLB = '11502b30-06f3-4f9b-a422-635930e52ac9';
const PLAYER_DVL = '72ac9027-02b4-4bf7-a10e-c4658b2c37d8';
const PLAYER_TLM = '5fba351e-5703-4d8d-8b0d-7b4d76f07e0f';
const PLAYER_DDB = '5fba351e-5703-4d8d-8b0d-7b4d76f07e0f';
const PLAYER_DBFC = '536bfc63-7711-4b2d-b326-775ab2813be3';
const PLAYER_DPB = 'ebdc0ee4-a880-4920-aa34-b78bf6578291';
const PLAYER_DIU = '566ca0fc-7cf9-4605-8e36-417a837e205e';
......
......@@ -38,9 +38,9 @@ final class TestPlayer
return PlayerIdentifier::fromString(TestIds::PLAYER_DVL);
}
public static function tlm(): PlayerIdentifier
public static function ddb(): PlayerIdentifier
{
return PlayerIdentifier::fromString(TestIds::PLAYER_TLM);
return PlayerIdentifier::fromString(TestIds::PLAYER_DDB);
}
public static function dbfc(): PlayerIdentifier
......
......@@ -23,14 +23,14 @@ final class TestTableBuilder
}
/**
* Build table with players secr, dtl, tlm, penn.
* Build table with players secr, dtl, ddb, penn.
*/
public function buildTableWithFourPlayers(TableIdentifier $tableIdentifier): void
{
$players = [
'secr' => TestPlayer::secretaris(),
'dtl' => TestPlayer::dtl(),
'tlm' => TestPlayer::tlm(),
'ddb' => TestPlayer::ddb(),
'penn' => TestPlayer::penningmeester(),
];
......@@ -78,7 +78,7 @@ final class TestTableBuilder
$players = [
'secr' => TestPlayer::secretaris(),
'dtl' => TestPlayer::dtl(),
'tlm' => TestPlayer::tlm(),
'ddb' => TestPlayer::ddb(),
'penn' => TestPlayer::penningmeester(),
'dvl' => TestPlayer::dvl(),
];
......
......@@ -145,7 +145,7 @@ final class TestDataCommand extends Command
TestTable::table12(),
GameNumber::first(),
new PropAndCopSpecification(),
new TwoPlayerAnnouncement(TestPlayer::dtl(), TestPlayer::tlm()),
new TwoPlayerAnnouncement(TestPlayer::dtl(), TestPlayer::ddb()),
new NumberOfTricks(8)
)
);
......@@ -156,7 +156,7 @@ final class TestDataCommand extends Command
TestTable::table13(),
GameNumber::first(),
new PropAndCopSpecification(),
new TwoPlayerAnnouncement(TestPlayer::dtl(), TestPlayer::tlm()),
new TwoPlayerAnnouncement(TestPlayer::dtl(), TestPlayer::ddb()),
new NumberOfTricks(8)
)
);
......@@ -183,8 +183,8 @@ final class TestDataCommand extends Command
TestTable::table17(),
GameNumber::first(),
new MisereSpecification(),
new MultiPlayerAnnouncement(PlayerIdentifiers::fromSingle(TestPlayer::tlm())),
new Winners(PlayerIdentifiers::fromSingle(TestPlayer::tlm()))
new MultiPlayerAnnouncement(PlayerIdentifiers::fromSingle(TestPlayer::ddb())),
new Winners(PlayerIdentifiers::fromSingle(TestPlayer::ddb()))
),
new LogGame(
TestTable::table17(),
......@@ -204,7 +204,7 @@ final class TestDataCommand extends Command
TestTable::table17(),
GameNumber::fromInteger(4),
new PropAndCopSpecification(),
new TwoPlayerAnnouncement(TestPlayer::tlm(), TestPlayer::secretaris()),
new TwoPlayerAnnouncement(TestPlayer::ddb(), TestPlayer::secretaris()),
new NumberOfTricks(11)
),
new PassAround(
......@@ -223,7 +223,7 @@ final class TestDataCommand extends Command
TestTable::table17(),
GameNumber::fromInteger(5),
new PropAndCopSpecification(),
new TwoPlayerAnnouncement(TestPlayer::tlm(), TestPlayer::penningmeester()),
new TwoPlayerAnnouncement(TestPlayer::ddb(), TestPlayer::penningmeester()),
new NumberOfTricks(10)
),
new PassAround(
......@@ -234,7 +234,7 @@ final class TestDataCommand extends Command
TestTable::table17(),
GameNumber::fromInteger(6),
new PropAndCopSpecification(),
new TwoPlayerAnnouncement(TestPlayer::tlm(), TestPlayer::secretaris()),
new TwoPlayerAnnouncement(TestPlayer::ddb(), TestPlayer::secretaris()),
new NumberOfTricks(11)
),
new LogGame(
......
......@@ -15,18 +15,18 @@ final class CorrectionLineCest
$i->waitForText('Add correction line');
$i->click('Add correction line');
$i->waitForElement('//input[@name="corr_'.TestIds::PLAYER_TLM.'"]');
$i->fillField('corr_'.TestIds::PLAYER_TLM, 4);
$i->waitForElement('//input[@name="corr_'.TestIds::PLAYER_DDB.'"]');
$i->fillField('corr_'.TestIds::PLAYER_DDB, 4);
$i->fillField('corr_'.TestIds::PLAYER_PENNINGMEESTER, -4);
$i->click('Correct');
$i->waitForText('correction', null, '#note_2');
$i->see('6', '#score_2_'.TestIds::PLAYER_TLM);
$i->see('6', '#score_2_'.TestIds::PLAYER_DDB);
$i->see('-6', '#score_2_'.TestIds::PLAYER_PENNINGMEESTER);
$i->see('correction', '#note_2');
$i->dontSeeElement('//input[@name="corr_'.TestIds::PLAYER_TLM.'"]');
$i->dontSeeElement('//input[@name="corr_'.TestIds::PLAYER_DDB.'"]');
$i->click('Add correction line');
$i->waitForElement('//input[@name="corr_'.TestIds::PLAYER_TLM.'"]');
$i->seeInField('corr_'.TestIds::PLAYER_TLM, '0');
$i->waitForElement('//input[@name="corr_'.TestIds::PLAYER_DDB.'"]');
$i->seeInField('corr_'.TestIds::PLAYER_DDB, '0');
$i->seeInField('corr_'.TestIds::PLAYER_PENNINGMEESTER, '0');
}
......
......@@ -41,16 +41,16 @@ final class DealerCest
$i->waitForElement('td.table-primary');
// Select another dealer
$i->selectOption('new_dealer', TestIds::PLAYER_TLM);
$i->seeOptionIsSelected('new_dealer', 'tlm');
$i->selectOption('new_dealer', TestIds::PLAYER_DDB);
$i->seeOptionIsSelected('new_dealer', 'ddb');
// Reload the page, and see if dealer is still selected (see #29).
$i->reloadPage();
$i->waitForText('New player:');
$i->scrollTo('#score-table');
$i->waitForText('tlm', null, 'th.table-primary');
$i->see('tlm', 'th.table-primary');
$i->waitForText('ddb', null, 'th.table-primary');
$i->see('ddb', 'th.table-primary');
}
public function checkDealerDropDownIsOnlyEnabledWhenIActuallyCanAnnounceADealer(AcceptanceTester $i)
......
......@@ -20,7 +20,7 @@ final class MisereCest
$i->selectOption('game_to_log', 'misere');
$i->waitForElementVisible('.announcement');
$i->seeElement('input#announcer_'.TestIds::PLAYER_TLM);
$i->seeElement('input#announcer_'.TestIds::PLAYER_DDB);
$i->see('Success?');
}
......@@ -35,11 +35,11 @@ final class MisereCest
$i->selectOption('game_to_log', 'misere');
$i->waitForElementVisible('.announcement');
$i->seeElement('input#announcer_'.TestIds::PLAYER_TLM);
$i->checkOption('input#announcer_'.TestIds::PLAYER_TLM);
$i->seeElement('input#announcer_'.TestIds::PLAYER_DDB);
$i->checkOption('input#announcer_'.TestIds::PLAYER_DDB);
$i->click('Log');
$i->waitForText('misère', null, 'table');
$i->dontSeeCheckboxIsChecked('input#announcer_'.TestIds::PLAYER_TLM);
$i->dontSeeCheckboxIsChecked('input#announcer_'.TestIds::PLAYER_DDB);
}
}
......@@ -21,8 +21,8 @@ final class PropAndCopCest
$i->selectOption('game_to_log', 'prop_and_cop');
$i->waitForElementVisible('.announcement');
$i->waitForElement('//select[@name="announcing_player_1"]/option[@value="'.TestIds::PLAYER_TLM.'"]');
$i->selectOption('announcing_player_1', TestIds::PLAYER_TLM);
$i->waitForElement('//select[@name="announcing_player_1"]/option[@value="'.TestIds::PLAYER_DDB.'"]');
$i->selectOption('announcing_player_1', TestIds::PLAYER_DDB);
$i->selectOption('announcing_player_2', TestIds::PLAYER_SECRETARIS);
$i->click('Log');
......@@ -31,7 +31,7 @@ final class PropAndCopCest
// Check scores in 1st line
$i->see('Prop & cop', '#note_1');
$i->see('2', '#score_1_'.TestIds::PLAYER_TLM);
$i->see('2', '#score_1_'.TestIds::PLAYER_DDB);
$i->see('2', '#score_1_'.TestIds::PLAYER_SECRETARIS);
$i->see('-2', '#score_1_'.TestIds::PLAYER_PENNINGMEESTER);
$i->see('-2', '#score_1_'.TestIds::PLAYER_DTL);
......
......@@ -17,6 +17,6 @@ final class ProposeNobodyAlongCest
$i->waitForElement('#no-game-buttons');
$i->click('Proposed, nobody along');
$i->waitForText('tlm', null, 'th.table-primary');
$i->waitForText('ddb', null, 'th.table-primary');
}
}
......@@ -32,7 +32,7 @@ final class PlayersCest
'lastKnownSeat' => 1,
],
[
'name' => 'tlm',
'name' => 'ddb',
'status' => 'active',
'playerIdentifier' => '5fba351e-5703-4d8d-8b0d-7b4d76f07e0f',
'lastKnownSeat' => 2,
......
......@@ -52,7 +52,7 @@ final class AnnouncementValidationViaTableTest extends AbstractEventSourcingInte
),
new JoinPlayer(
$this->tableIdentifier,
TestPlayer::tlm(),
TestPlayer::ddb(),
GameNumber::first(),
Seat::four()
),
......
......@@ -29,7 +29,7 @@ final class CombinedAnnouncementValidatorTest extends KernelTestCase
SeatedPlayers::fromArray([
TestPlayer::dtl(),
TestPlayer::secretaris(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::penningmeester(),
]),
TestPlayer::dtl()
......@@ -40,7 +40,7 @@ final class CombinedAnnouncementValidatorTest extends KernelTestCase
public function itAcceptsSinglePlayerAnnouncementWithKnownPlayer(): void
{
$announcement = new SinglePlayerAnnouncement(
TestPlayer::tlm()
TestPlayer::ddb()
);
$result = $this->validator->isValidAnnouncement(
......
......@@ -40,7 +40,7 @@ final class ScoreLogProjectorTest extends AbstractEventSourcingIntegrationTest
$this->getCommandBus()->dispatch(
new JoinPlayer($this->tableIdentifier, TestPlayer::penningmeester(), GameNumber::first(), Seat::three()),
new JoinPlayer($this->tableIdentifier, TestPlayer::dtl(), GameNumber::first(), Seat::zero()),
new JoinPlayer($this->tableIdentifier, TestPlayer::tlm(), GameNumber::first(), Seat::one()),
new JoinPlayer($this->tableIdentifier, TestPlayer::ddb(), GameNumber::first(), Seat::one()),
new JoinPlayer($this->tableIdentifier, TestPlayer::dbfc(), GameNumber::first(), Seat::two()),
new AnnounceDealer($this->tableIdentifier, TestPlayer::dbfc(), GameNumber::first())
);
......@@ -169,7 +169,7 @@ final class ScoreLogProjectorTest extends AbstractEventSourcingIntegrationTest
ScoreLineNumber::first()
)->withFrancsForPlayer(TestPlayer::penningmeester(), -1)
->withFrancsForPlayer(TestPlayer::dtl(), -1)
->withFrancsForPlayer(TestPlayer::tlm(), -1)
->withFrancsForPlayer(TestPlayer::ddb(), -1)
->withFrancsForPlayer(TestPlayer::secretaris(), -1)
->withFrancsForPlayer(TestPlayer::dbfc(), 4)
->build()
......@@ -183,7 +183,7 @@ final class ScoreLogProjectorTest extends AbstractEventSourcingIntegrationTest
ScoreLineNumber::fromInteger(2)
)->withFrancsForPlayer(TestPlayer::penningmeester(), -2)
->withFrancsForPlayer(TestPlayer::dtl(), -2)
->withFrancsForPlayer(TestPlayer::tlm(), -2)
->withFrancsForPlayer(TestPlayer::ddb(), -2)
->withFrancsForPlayer(TestPlayer::secretaris(), -2)
->withFrancsForPlayer(TestPlayer::dbfc(), 8)
->build()
......
......@@ -82,7 +82,7 @@ class CurrentGameProjectorTest extends TestCase
}
};
$event = new class($tableIdentifier, GameNumber::first(), $announcement, $outcome, PlayersInvolved::from(SeatedPlayers::fromArray([TestPlayer::dtl(), TestPlayer::penningmeester(), TestPlayer::tlm(), TestPlayer::secretaris()]), TestPlayer::secretaris())) extends AbstractGameEvent {
$event = new class($tableIdentifier, GameNumber::first(), $announcement, $outcome, PlayersInvolved::from(SeatedPlayers::fromArray([TestPlayer::dtl(), TestPlayer::penningmeester(), TestPlayer::ddb(), TestPlayer::secretaris()]), TestPlayer::secretaris())) extends AbstractGameEvent {
};
$projector = new CurrentGameProjector($updater);
......@@ -152,7 +152,7 @@ class CurrentGameProjectorTest extends TestCase
}
};
$event = new class($tableIdentifier, GameNumber::first(), $announcement, $outcome, PlayersInvolved::from(SeatedPlayers::fromArray([TestPlayer::dtl(), TestPlayer::penningmeester(), TestPlayer::tlm(), TestPlayer::secretaris()]), TestPlayer::secretaris())) extends AbstractGameEvent {
$event = new class($tableIdentifier, GameNumber::first(), $announcement, $outcome, PlayersInvolved::from(SeatedPlayers::fromArray([TestPlayer::dtl(), TestPlayer::penningmeester(), TestPlayer::ddb(), TestPlayer::secretaris()]), TestPlayer::secretaris())) extends AbstractGameEvent {
};
$projector = new CurrentGameProjector($updater);
......
......@@ -59,9 +59,9 @@ final class PlayersGroupReadModelTest extends TestCase
'lastKnownSeat' => 1,
],
[
'name' => 'tlm',
'name' => 'ddb',
'status' => 2,
'playerIdentifier' => TestIds::PLAYER_TLM,
'playerIdentifier' => TestIds::PLAYER_DDB,
'lastKnownSeat' => 2,
],
[
......
......@@ -14,7 +14,7 @@ final class PlayerIdentifiersTest extends TestCase
$identifiers = PlayerIdentifiers::fromArray([
TestPlayer::penningmeester(),
TestPlayer::secretaris(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::dtl(),
]);
......@@ -24,7 +24,7 @@ final class PlayerIdentifiersTest extends TestCase
);
$expected = PlayerIdentifiers::fromArray([
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::dtl(),
]);
......
......@@ -42,7 +42,7 @@ final class PlayersInvolvedTest extends TestCase
TestPlayer::dtl(),
TestPlayer::secretaris(),
TestPlayer::dlb(),
TestPlayer::tlm(),
TestPlayer::ddb(),
]),
TestPlayer::penningmeester()
);
......@@ -114,7 +114,7 @@ final class PlayersInvolvedTest extends TestCase
TestPlayer::dtl(),
TestPlayer::secretaris(),
TestPlayer::dlb(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::penningmeester(),
]);
}
......@@ -125,7 +125,7 @@ final class PlayersInvolvedTest extends TestCase
TestPlayer::dtl(),
TestPlayer::secretaris(),
TestPlayer::dlb(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::penningmeester(),
TestPlayer::dvl(),
]);
......
......@@ -116,14 +116,14 @@ final class SeatedPlayersTest extends TestCase
public function itReturnsPlayersOrderedBySeat(): void
{
$seatedPlayers = SeatedPlayers::fromArray([
2 => TestPlayer::tlm(),
2 => TestPlayer::ddb(),
1 => TestPlayer::dtl(),
]);
$actual = array_values($seatedPlayers->toArray());
$expected = [
TestPlayer::dtl(),
TestPlayer::tlm(),
TestPlayer::ddb(),
];
$this->assertEquals($expected, $actual);
......
......@@ -61,7 +61,7 @@ final class ScoreLineTest extends TestCase
->withWinner(TestPlayer::dbfc(), 2)
->withWinner(TestPlayer::dvl(), 2)
->withLoser(TestPlayer::dtl(), 2)
->withLoser(TestPlayer::tlm(), 2)
->withLoser(TestPlayer::ddb(), 2)
->build(),
ScoreFactor::fromInteger(2)
),
......@@ -73,7 +73,7 @@ final class ScoreLineTest extends TestCase
->withFrancsForPlayer(TestPlayer::dbfc(), 4)
->withFrancsForPlayer(TestPlayer::dvl(), 4)
->withFrancsForPlayer(TestPlayer::dtl(), -4)
->withFrancsForPlayer(TestPlayer::tlm(), -4)
->withFrancsForPlayer(TestPlayer::ddb(), -4)
->build();
$this->assertEquals($expected, $scoreLine);
......
......@@ -31,7 +31,7 @@ final class ScoresLoggedTest extends TestCase
TestIds::PLAYER_DPB => 15,
TestIds::PLAYER_DLB => -5,
TestIds::PLAYER_DBFC => -5,
TestIds::PLAYER_TLM => -5,
TestIds::PLAYER_DDB => -5,
],
'misere',
ScoreLineNumber::first()
......
......@@ -126,7 +126,7 @@ final class ScoreSheetProcessManagerTest extends TestCase
$this->tableIdentifier,
GameNumber::first(),
new TwoPlayerAnnouncement(
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::secretaris()
),
NumberOfTricks::fromNumber(8),
......@@ -139,7 +139,7 @@ final class ScoreSheetProcessManagerTest extends TestCase
PlainWinnings::twoPlayersWin(
2,
$playersInvolved,
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::secretaris()
),
PropAndCopSpecification::NAME
......@@ -159,7 +159,7 @@ final class ScoreSheetProcessManagerTest extends TestCase
PlayerIdentifiers::fromArray([
TestPlayer::dtl(),
TestPlayer::penningmeester(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::secretaris(),
]),
TestPlayer::dtl()
......@@ -177,7 +177,7 @@ final class ScoreSheetProcessManagerTest extends TestCase
$this->tableIdentifier,
GameNumber::first(),
new TwoPlayerAnnouncement(
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::secretaris()
),
NumberOfTricks::fromNumber(6),
......@@ -191,7 +191,7 @@ final class ScoreSheetProcessManagerTest extends TestCase
PlainWinnings::twoPlayersPay(
4,
$this->getPlayersInvolved(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::secretaris()
),
PropAndCopSpecification::NAME
......
......@@ -196,7 +196,7 @@ final class TableTest extends TestCase
/**
* Returns a table with given number of players players.
*
* Players are: secr, dtl, tlm, penn, dlb, dvl
* Players are: secr, dtl, ddb, penn, dlb, dvl
*/
private function getTestTableWithPlayers(int $numberOfPlayers): Table
{
......@@ -225,13 +225,13 @@ final class TableTest extends TestCase
$table = $this->getTestTableWithPlayers(4);
$table->clearUncommittedEvents();
$table->announceDealer(TestPlayer::tlm(), GameNumber::first());
$table->announceDealer(TestPlayer::ddb(), GameNumber::first());
$actualEvents = array_values($table->getUncommittedEvents());
$expectedEvents = [
new DealerAnnounced(
$this->tableIdentifier,
TestPlayer::tlm(),
TestPlayer::ddb(),
GameNumber::first()
),
];
......@@ -244,14 +244,14 @@ final class TableTest extends TestCase
$table = $this->getTestTableWithPlayers(4);
$table->clearUncommittedEvents();
$table->announceDealer(TestPlayer::tlm(), GameNumber::first());
$table->announceDealer(TestPlayer::tlm(), GameNumber::first());
$table->announceDealer(TestPlayer::ddb(), GameNumber::first());
$table->announceDealer(TestPlayer::ddb(), GameNumber::first());
$actualEvents = array_values($table->getUncommittedEvents());
$expectedEvents = [
new DealerAnnounced(
$this->tableIdentifier,
TestPlayer::tlm(),
TestPlayer::ddb(),
GameNumber::first()
),
];
......@@ -264,7 +264,7 @@ final class TableTest extends TestCase
*/
public function testSameDealerCanOnlyPassAroundThreeTimes(): void
{
// create table with players: secr, dtl, tlm, penn
// create table with players: secr, dtl, ddb, penn
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::dtl(), GameNumber::first());
$table->clearUncommittedEvents();
......@@ -284,7 +284,7 @@ final class TableTest extends TestCase
),
new DealerAnnounced(
$this->tableIdentifier,
TestPlayer::tlm(),
TestPlayer::ddb(),
GameNumber::first()
),
];
......@@ -299,7 +299,7 @@ final class TableTest extends TestCase
);
$table->join(TestPlayer::dlb(), GameNumber::first(), Seat::three());
$table->join(TestPlayer::tlm(), GameNumber::first(), Seat::zero());
$table->join(TestPlayer::ddb(), GameNumber::first(), Seat::zero());
$table->join(TestPlayer::dbfc(), GameNumber::first(), Seat::one());
$this->expectException(NotEnoughPlayers::class);
......@@ -359,7 +359,7 @@ final class TableTest extends TestCase
*/
public function itDoesNotIncreaseGameNumberWhenProposedWithNobodyAlong(): void
{
// players are: secretaris, dtl, tlm, penningmeester
// players are: secretaris, dtl, ddb, penningmeester
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::penningmeester(), GameNumber::first());
$table->passAround(GameNumber::first());
......@@ -390,7 +390,7 @@ final class TableTest extends TestCase
public function testTwoFailedDealers(): void
{
// players are: secretaris, dtl, tlm, penningmeester
// players are: secretaris, dtl, ddb, penningmeester
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::penningmeester(), GameNumber::first());
$table->clearUncommittedEvents();
......@@ -439,7 +439,7 @@ final class TableTest extends TestCase
/** @test */
public function itLogsAloneGameBySpecification(): void
{
// players are: secretaris, dtl, tlm, penningmeester
// players are: secretaris, dtl, ddb, penningmeester
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::dtl(), GameNumber::first());
$table->clearUncommittedEvents();
......@@ -467,7 +467,7 @@ final class TableTest extends TestCase
),
new DealerAnnounced(
$this->tableIdentifier,
TestPlayer::tlm(),
TestPlayer::ddb(),
GameNumber::second()
),
];
......@@ -491,7 +491,7 @@ final class TableTest extends TestCase
/** @test */
public function itIgnoresAPlayerJoiningTwice(): void
{
// secretaris, dtl, tlm, penningmeester
// secretaris, dtl, ddb, penningmeester
$table = $this->getTestTableWithPlayers(4);
$table->clearUncommittedEvents();
$table->join(TestPlayer::penningmeester(), GameNumber::first());
......@@ -508,7 +508,7 @@ final class TableTest extends TestCase
[
TestPlayer::secretaris(),
TestPlayer::dtl(),
TestPlayer::tlm(),
TestPlayer::ddb(),
TestPlayer::penningmeester(),
TestPlayer::dlb(),
TestPlayer::dvl(),
......@@ -526,9 +526,9 @@ final class TableTest extends TestCase
*/
public function itResetsPassAroundCountWhenAnActualGameIsLogged(): void
{
// secr, dtl, tlm, penn
// secr, dtl, ddb, penn
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::tlm(), GameNumber::first());
$table->announceDealer(TestPlayer::ddb(), GameNumber::first());
// pass around twice, then dtl pays misère.
$table->passAround(GameNumber::first());
......@@ -568,9 +568,9 @@ final class TableTest extends TestCase
*/
public function itAnnouncesNextDealerWhenProposedWithNobodyAlong(): void
{
// secr, dtl, tlm, penn
// secr, dtl, ddb, penn
$table = $this->getTestTableWithPlayers(4);
$table->announceDealer(TestPlayer::tlm(), GameNumber::first());
$table->announceDealer(TestPlayer::ddb(), GameNumber::first());
$table->clearUncommittedEvents();