Redaktion mit Bereichsleiste und Übersicht (0.42.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m51s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 6m48s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m16s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m30s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 9m44s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m49s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m37s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 18:38:44 +00:00
parent b1209a0d33
commit d5b7b1e0a8
146 changed files with 666 additions and 362 deletions

View file

@ -45,7 +45,7 @@ class PagesAdminTest extends TestCase
// Die MAV pflegt ihre Seiten in der Redaktion des Portals, nicht im Backend
$this->actingAs($member)->get('/admin/seiten')->assertForbidden();
$this->get('/redaktion')->assertInertia(fn ($p) => $p->where('sections', fn ($sections) => count(collect($sections)->firstWhere('key', 'pages')['props']['pages']) === 2));
$this->get('/redaktion?bereich=pages')->assertInertia(fn ($p) => $p->where('section.props.pages', fn ($pages) => count($pages) === 2));
$this->assertTrue($member->can('publish', $child));
}

View file

@ -126,9 +126,9 @@ class PagesTest extends TestCase
$this->putJson('/redaktion/seiten/'.$other->id.'/entwurf', ['title' => 'x', 'content' => $this->content()])->assertForbidden();
$this->post('/redaktion/seiten', ['title' => 'Oberste Ebene'])->assertForbidden();
$this->get('/redaktion')->assertOk()->assertInertia(fn (Assert $p) => $p
->where('sections.0.key', 'pages')
->where('sections.0.props.pages', fn ($pages) => collect($pages)->pluck('title')->sort()->values()->all() === ['MAV', 'Wahlen']));
$this->get('/redaktion?bereich=pages')->assertOk()->assertInertia(fn (Assert $p) => $p
->where('section.key', 'pages')
->where('section.props.pages', fn ($pages) => collect($pages)->pluck('title')->sort()->values()->all() === ['MAV', 'Wahlen']));
$this->get('/seiten/mav')->assertInertia(fn (Assert $p) => $p->where('editor.url', route('pages.editor', $mavPage)));
$this->get('/seiten/geschaeftsfuehrung')->assertInertia(fn (Assert $p) => $p->where('editor', null));