/**
  * @test
  */
 public function itShouldBuildTheCommand()
 {
     $command = CreateGameCommand::create($this->gameId, $this->playerId, $this->gameOptions, $this->context);
     $this->assertEquals($this->gameId, $command->getGameId());
     $this->assertEquals($this->playerId, $command->getPlayerId());
     $this->assertEquals($this->gameOptions, $command->getOptions());
     $this->assertEquals($this->context, $command->getContext());
     $this->assertEquals(CreateGameCommand::NAME, $command->getCommandName());
 }
 /**
  * @test
  */
 public function itShouldFailCreatingGame()
 {
     $command = CreateGameCommand::create($this->gameId, $this->playerId, $this->options, $this->context);
     $this->givenGameCannotBeCreated();
     $this->assertErrorWillBeHandled();
     $this->assertGameStateWontChange();
     $this->miniGameCommandHandler->handleCreateGameCommand($command);
 }