Overview of active payment methode
This commit is contained in:
@@ -50,10 +50,15 @@ class EventPaymentModuleRegistryTest extends TestCase
|
|||||||
$this->assertTrue($module->isConfigurationComplete(['iban' => 'DE123', 'account_owner' => 'Kasse']));
|
$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 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
|
public function test_participant_option_helpers(): void
|
||||||
|
|||||||
Reference in New Issue
Block a user