Startseite: acht Bereichs-Beiträge, Schnellzugriffe wahlweise in der Seitenleiste
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m7s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m13s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m18s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m27s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m12s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m40s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m41s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 17:44:32 +00:00
parent 4332b02efb
commit 3a5796aaf8
101 changed files with 519 additions and 405 deletions

View file

@ -141,7 +141,7 @@ class NewsTest extends TestCase
Storage::disk('uploads')->put('news/a.jpg', UploadedFile::fake()->image('a.jpg', 800, 450)->getContent());
$featured = NewsPost::factory()->create(['is_featured' => true, 'cover_path' => 'news/a.jpg']);
NewsPost::factory()->count(5)->create();
NewsPost::factory()->count(13)->create();
NewsPost::factory()->draft()->create(['is_featured' => true, 'cover_path' => 'news/a.jpg']);
$response = $this->actingAs(User::factory()->create())->get('/');
@ -150,6 +150,6 @@ class NewsTest extends TestCase
$this->assertCount(1, $hero);
$this->assertSame($featured->id, $hero[0]['id']);
$this->assertCount(4, $this->dashboardWidget($response, 'news.latest')['posts']);
$this->assertCount(1, $this->dashboardWidget($response, 'news.areas')['posts']);
$this->assertCount(8, $this->dashboardWidget($response, 'news.areas')['posts'], 'Zwei Reihen à vier Beiträge');
}
}