[Tests] Migrate server tests to the shared fixture

Replace the remaining private MockDatabaseInterface/FakeServer copies in the forced-password, room-channel, movecard, and random-reveal tests with InMemoryServer_DatabaseInterface and ServerTestFixture. The room-channel test keeps its log assertions against the shared logEntries; the forced-password test seeds its moderator user and auth result through the fixture knobs. Delete movecard_tests/server_test_helpers.h.
This commit is contained in:
Lukas Brübach 2026-11-09 16:02:47 +01:00
parent 2187e47a60
commit 7b8558c695
8 changed files with 34 additions and 167 deletions

View file

@ -371,6 +371,9 @@ cockatrice_add_test(
LIBS
libcockatrice_network_server_remote
libcockatrice_rng
testsupport_server
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LABELS
server
)
@ -396,6 +399,9 @@ cockatrice_add_test(
LIBS
libcockatrice_network_server_remote
libcockatrice_rng
testsupport_server
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LABELS
server
)
@ -431,6 +437,9 @@ cockatrice_add_test(
LIBS
libcockatrice_network_server_remote
libcockatrice_rng
testsupport_server
INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}
LABELS
server
)