Backend-WIP: Kontakt-Queue, Page-Cache, Validierungs-Feedback, i18n
Gebuendelt, da ueber gemeinsame lang-/Service-Dateien verschraenkt: - Kontakt-Nachrichten: contact_messages-Tabelle + Model/Enums/Factory, Admin-Queue (livewire/admin/contact-messages), ContactController persistiert das Anliegen zusaetzlich zur Brand-Mail - Page-Data-Cache (Services/Web/*PageData) + web-archive-Indizes auf press_releases - Validierungs-Feedback + Company-Portal-Restriction (Feature-Tests) - i18n-Auslagerung lang/de|en (auth, passwords, validation, static) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ef5de54300
commit
72e6a3c210
60 changed files with 3963 additions and 327 deletions
|
|
@ -90,17 +90,28 @@ test('save lehnt unbekannte Portal-Werte ab', function () {
|
|||
->assertHasErrors(['portal']);
|
||||
});
|
||||
|
||||
test('save akzeptiert Portal Both', function () {
|
||||
test('save lehnt Portal Both ab', function () {
|
||||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->set('name', 'Beide Portale GmbH')
|
||||
->set('portal', 'both')
|
||||
->set('portal', Portal::Both->value)
|
||||
->call('save')
|
||||
->assertHasNoErrors();
|
||||
->assertHasErrors(['portal']);
|
||||
|
||||
expect(Company::query()->withoutGlobalScopes()->where('name', 'Beide Portale GmbH')->value('portal'))
|
||||
->toBe(Portal::Both);
|
||||
expect(Company::query()->withoutGlobalScopes()->where('name', 'Beide Portale GmbH')->exists())
|
||||
->toBeFalse();
|
||||
});
|
||||
|
||||
test('Portal-Auswahl bietet Beide Portale nicht an', function () {
|
||||
/** @var TestCase $this */
|
||||
$customer = makeCustomerForCreate();
|
||||
|
||||
LivewireVolt::actingAs($customer)
|
||||
->test('customer.press-kits.create')
|
||||
->assertSeeText(Portal::Presseecho->label())
|
||||
->assertSeeText(Portal::Businessportal24->label())
|
||||
->assertDontSeeText(Portal::Both->label());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue