Logfiles for sessions

This commit is contained in:
Frank
2026-01-08 18:14:56 +01:00
parent a475c1a268
commit 50d7ce745c
8 changed files with 277 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ declare(strict_types=1);
namespace App\Tests\Game;
use App\Game\Entity\Game;
use App\Game\Entity\Player;
use App\Game\Entity\Session;
use App\Game\Entity\SessionSetting;
@@ -39,7 +40,8 @@ class GameResponseServiceChatVerifyCodeTest extends TestCase
$this->playerService,
$this->sessionSettingRepository,
$this->hub,
$this->entityManager
$this->entityManager,
'H:\escapepage'
);
$_ENV['MERCURE_TOPIC_BASE'] = 'http://test';
@@ -50,8 +52,12 @@ class GameResponseServiceChatVerifyCodeTest extends TestCase
$user = new User();
$user->setUsername('testuser');
$game = $this->createMock(Game::class);
$game->method('getNumberOfPlayers')->willReturn(4);
$session = $this->createMock(Session::class);
$session->method('getId')->willReturn(123);
$session->method('getGame')->willReturn($game);
$player = $this->createMock(Player::class);
$player->method('getUser')->willReturn($user);