fixed sanitazer and academy
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user