fixed sanitazer and academy

This commit is contained in:
2026-06-05 16:53:20 +02:00
parent 15870ddb1f
commit f89ee937c0
29 changed files with 2444 additions and 1039 deletions

View File

@@ -44,6 +44,8 @@ it('forbids newsroom studio pages for non moderators', function (): void {
});
it('renders newsroom studio pages for moderators', function (): void {
Carbon::setTestNow(Carbon::parse('2026-06-04 13:45:00'));
$moderator = User::factory()->create([
'role' => 'moderator',
'username' => 'modnews',
@@ -88,7 +90,9 @@ it('renders newsroom studio pages for moderators', function (): void {
->has('statusOptions')
->has('categoryOptions')
->has('tagOptions')
->where('defaultAuthor.id', $moderator->id));
->where('defaultAuthor.id', $moderator->id)
->where('defaultAuthor.title', 'Moderator News')
->where('defaultPublishedAt', '2026-06-04T13:45'));
$this->actingAs($moderator)
->get(route('studio.news.categories'))
@@ -104,6 +108,8 @@ it('renders newsroom studio pages for moderators', function (): void {
->assertOk()
->assertSee('Preview mode')
->assertSee('Moderated newsroom article');
Carbon::setTestNow();
});
it('decodes legacy apostrophe entities in the newsroom editor', function (): void {