1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Notifications: Add phpunit test for notification sending

Covers core case scenarios, and check of notification content.
This commit is contained in:
Dan Brown
2023-08-16 16:02:00 +01:00
parent bc6e19b2a1
commit 565908ef52
8 changed files with 208 additions and 8 deletions

View File

@ -27,7 +27,7 @@ class DummyContentSeeder extends Seeder
// Create an editor user
$editorUser = User::factory()->create();
$editorRole = Role::getRole('editor');
$additionalEditorPerms = ['receive-notifications'];
$additionalEditorPerms = ['receive-notifications', 'comment-create-all'];
$editorRole->permissions()->syncWithoutDetaching(RolePermission::whereIn('name', $additionalEditorPerms)->pluck('id'));
$editorUser->attachRole($editorRole);