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

@ -91,8 +91,10 @@ class NewsWorkflowTest extends TestCase
$this->actingAs($employee)->get('/neuigkeiten/'.$post->slug)->assertNotFound();
$this->actingAs($this->editor)->get('/redaktion')->assertInertia(fn (Assert $p) => $p
->where('sections.0.key', 'news')
->where('sections.0.props.review.0.title', 'Mitarbeiterversammlung'));
->where('areas.0.key', 'news')->where('areas.0.todo.count', 1)->where('section', null));
$this->actingAs($this->editor)->get('/redaktion?bereich=news')->assertInertia(fn (Assert $p) => $p
->where('section.key', 'news')
->where('section.props.review.0.title', 'Mitarbeiterversammlung'));
$this->post('/redaktion/neuigkeiten/'.$post->id.'/freigeben')->assertRedirect('/redaktion');
$post->refresh();
@ -121,7 +123,7 @@ class NewsWorkflowTest extends TestCase
$this->assertSame('Bitte Ort ergänzen.', $post->review_note);
Notification::assertSentTo($this->author, PortalNotification::class, fn ($n) => str_contains($n->body, 'Bitte Ort ergänzen.'));
$this->actingAs($this->author)->get('/redaktion')->assertInertia(fn (Assert $p) => $p->where('sections.0.props.mine.0.review_note', 'Bitte Ort ergänzen.'));
$this->actingAs($this->author)->get('/redaktion?bereich=news')->assertInertia(fn (Assert $p) => $p->where('section.props.mine.0.review_note', 'Bitte Ort ergänzen.'));
$this->post('/redaktion/neuigkeiten/'.$post->id.'/freigeben')->assertForbidden();
}
@ -138,7 +140,7 @@ class NewsWorkflowTest extends TestCase
$this->assertTrue($post->is_featured);
$this->assertFalse($post->isPublished());
$this->get('/redaktion')->assertInertia(fn (Assert $p) => $p->where('sections.0.props.mine.0.status_label', 'Geplant'));
$this->get('/redaktion?bereich=news')->assertInertia(fn (Assert $p) => $p->where('section.props.mine.0.status_label', 'Geplant'));
$this->travel(3)->days();
$this->assertTrue($post->fresh()->isPublished());