From b15573cda6eae3461a0dd395a8c3871f8332f81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Wed, 5 Aug 2026 19:12:57 +0200 Subject: [PATCH] Overview of active payment methode --- tests/Unit/EventPaymentModuleRegistryTest.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/Unit/EventPaymentModuleRegistryTest.php b/tests/Unit/EventPaymentModuleRegistryTest.php index 13dc5c4..a038d0f 100644 --- a/tests/Unit/EventPaymentModuleRegistryTest.php +++ b/tests/Unit/EventPaymentModuleRegistryTest.php @@ -50,10 +50,15 @@ class EventPaymentModuleRegistryTest extends TestCase $this->assertTrue($module->isConfigurationComplete(['iban' => 'DE123', 'account_owner' => 'Kasse'])); } - public function test_existing_modules_have_no_participant_options(): void + public function test_participant_options_per_module(): void { + // Überweisung: keine payer-seitigen Eingaben. $this->assertSame([], (new AccountTransferPaymentModule())->getParticipantOptions()); - $this->assertSame([], (new UndefinedPaymentModule())->getParticipantOptions()); + + // Sonstiges: exemplarische Teilnehmer-Eingaben (Betrag + Passend-Checkbox). + $undefined = (new UndefinedPaymentModule())->getParticipantOptions(); + $this->assertSame(['amount_brought', 'has_exact_amount'], array_column($undefined, 'name')); + $this->assertSame('checkbox', $undefined[1]['type']); } public function test_participant_option_helpers(): void