mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 20:13:24 -08:00
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.
29 lines
473 B
CMake
Executable file
29 lines
473 B
CMake
Executable file
cockatrice_add_test(
|
|
NAME
|
|
reverse_card_move_test
|
|
SOURCES
|
|
reverse_card_move_test.cpp
|
|
LIBS
|
|
libcockatrice_network_server_remote
|
|
libcockatrice_rng
|
|
testsupport_server
|
|
INCLUDE_DIRS
|
|
${CMAKE_SOURCE_DIR}/tests
|
|
LABELS
|
|
server
|
|
)
|
|
|
|
cockatrice_add_test(
|
|
NAME
|
|
player_order_test
|
|
SOURCES
|
|
player_order_test.cpp
|
|
LIBS
|
|
libcockatrice_network_server_remote
|
|
libcockatrice_rng
|
|
testsupport_server
|
|
INCLUDE_DIRS
|
|
${CMAKE_SOURCE_DIR}/tests
|
|
LABELS
|
|
server
|
|
)
|