R3.2: Kontakt-/Ueber-uns-Routen zurueckgebaut, Spoke-Footer bereinigt
- GET kontakt/ueber-uns -> 301 auf die Ausgaben-Startseite; kontakt.store-POST bleibt fuer das Hub-Kontakt-Modal - Legacy-Aliases (contact/kontakt/ueber-uns) buendeln auf die Startseite - Spoke-Footer: Kontakt als mailto (Betreiber-Fallback bis R2.1), Ueber-uns-Link raus, Selfservice-Kuendigungslink ergaenzt - Sitemap-Konstanten bereinigt, Tests angepasst Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
ca777f23de
commit
136ecc8f43
6 changed files with 55 additions and 25 deletions
|
|
@ -4,9 +4,11 @@ use App\Mail\ContactRequestSubmitted;
|
|||
use Illuminate\Support\Facades\Mail;
|
||||
use Tests\TestCase;
|
||||
|
||||
test('the contact page renders the form', function () {
|
||||
test('the hub landing renders the contact modal form', function () {
|
||||
/** @var TestCase $this */
|
||||
$this->get('https://businessportal24.test/de/kontakt')
|
||||
// Die frühere Kontakt-Seite wurde zurückgebaut; das Formular lebt im
|
||||
// Kontakt-Modal des Hubs und postet weiter auf kontakt.store.
|
||||
$this->get('https://pressekonto.test/')
|
||||
->assertSuccessful()
|
||||
->assertSee('name="name"', false)
|
||||
->assertSee('name="email"', false)
|
||||
|
|
@ -19,13 +21,13 @@ test('a valid contact request sends a mail to the configured recipient', functio
|
|||
Mail::fake();
|
||||
config()->set('domains.domains.businessportal24.brand.contact_email', 'redaktion@businessportal24.de');
|
||||
|
||||
$this->from('https://businessportal24.test/de/kontakt')
|
||||
$this->from('https://businessportal24.test/de')
|
||||
->post('https://businessportal24.test/de/kontakt', [
|
||||
'name' => 'Paula Presse',
|
||||
'email' => 'paula@example.test',
|
||||
'message' => 'Ich habe eine Frage zu Ihrer Plattform und bitte um Rückruf.',
|
||||
])
|
||||
->assertRedirect('https://businessportal24.test/de/kontakt')
|
||||
->assertRedirect('https://businessportal24.test/de')
|
||||
->assertSessionHas('contact-status');
|
||||
|
||||
Mail::assertSent(ContactRequestSubmitted::class, function (ContactRequestSubmitted $mail) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue