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
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:
parent
b1209a0d33
commit
d5b7b1e0a8
146 changed files with 666 additions and 362 deletions
|
|
@ -48,9 +48,8 @@ class MavScenarioTest extends TestCase
|
|||
$this->actingAs($this->mav)->get('/admin/neuigkeiten')->assertForbidden();
|
||||
$this->get('/')->assertInertia(fn ($page) => $page->where('auth.user.can_admin', false));
|
||||
|
||||
$this->get('/redaktion')->assertOk()->assertInertia(fn ($page) => $page
|
||||
->where('sections', fn ($sections) => collect($sections)->firstWhere('key', 'news')['props']['published'][0]['title'] === 'MAV-Sprechstunde'
|
||||
&& count(collect($sections)->firstWhere('key', 'news')['props']['published']) === 1));
|
||||
$this->get('/redaktion?bereich=news')->assertOk()->assertInertia(fn ($page) => $page
|
||||
->where('section.props.published', fn ($published) => count($published) === 1 && $published[0]['title'] === 'MAV-Sprechstunde'));
|
||||
}
|
||||
|
||||
public function test_mav_cannot_manage_categories_or_other_sections(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue