Teilnahmerechnungen erstellen
This commit is contained in:
@@ -80,11 +80,15 @@ class TenantTaxInformationTest extends TestCase
|
||||
|
||||
public function test_invalid_exemption_reason_fails(): void
|
||||
{
|
||||
// Neue Tenants tragen den DB-Default (Jugendhilfe); verglichen wird deshalb gegen den Stand
|
||||
// vor der Aktion, nicht gegen null.
|
||||
$before = $this->tenant->fresh()->tax_exemption_reason;
|
||||
|
||||
$response = $this->runAction(taxLiable: false, vatRate: 0, reason: 'not_a_reason');
|
||||
|
||||
$this->assertFalse($response->success);
|
||||
// Unbekannter Slug wird nicht aufgelöst (null) → kein Speichern, Wert bleibt unverändert.
|
||||
$this->assertNull($this->tenant->fresh()->tax_exemption_reason);
|
||||
// Unbekannter Slug wird nicht aufgelöst → kein Speichern, Wert bleibt unverändert.
|
||||
$this->assertSame($before, $this->tenant->fresh()->tax_exemption_reason);
|
||||
}
|
||||
|
||||
public function test_custom_reason_requires_note(): void
|
||||
|
||||
Reference in New Issue
Block a user