neues Admin UI Layout eingeführt. Alle Tests auf den neusten Stand gebracht.

This commit is contained in:
Codex Agent
2025-12-30 10:24:06 +01:00
parent 902e78cae9
commit efe2f25b3e
85 changed files with 95235 additions and 19197 deletions

View File

@@ -2,10 +2,14 @@
namespace Tests\Feature;
use App\Models\LegalPage;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class MarketingLocaleRoutingTest extends TestCase
{
use RefreshDatabase;
public function test_contact_page_is_accessible_in_german(): void
{
$response = $this->get('/de/kontakt');
@@ -66,6 +70,24 @@ class MarketingLocaleRoutingTest extends TestCase
public function test_legal_pages_render_for_german_locale(): void
{
foreach (['impressum', 'datenschutz', 'agb'] as $slug) {
LegalPage::updateOrCreate(
['slug' => $slug, 'version' => 1],
[
'title' => [
'de' => ucfirst($slug),
'en' => ucfirst($slug),
],
'body_markdown' => [
'de' => '# '.$slug,
'en' => '# '.$slug,
],
'locale_fallback' => 'de',
'is_published' => true,
]
);
}
$this->get('/de/impressum')->assertStatus(200);
$this->get('/de/datenschutz')->assertStatus(200);
$this->get('/de/agb')->assertStatus(200);