diff --git a/tests/integration/api/ForumSerializerTest.php b/tests/integration/api/ForumSerializerTest.php index 73155929..2490a969 100644 --- a/tests/integration/api/ForumSerializerTest.php +++ b/tests/integration/api/ForumSerializerTest.php @@ -1,5 +1,14 @@ prepareDatabase([ 'users' => [ $this->normalUser(), - ['id' => 3, 'username' => 'pollsuser', 'email' => 'polls@machine.local', 'password' => 'too-obscure', 'is_email_confirmed' => 1] + ['id' => 3, 'username' => 'pollsuser', 'email' => 'polls@machine.local', 'password' => 'too-obscure', 'is_email_confirmed' => 1], ], 'group_user' => [ - ['user_id' => 3, 'group_id' => 4] + ['user_id' => 3, 'group_id' => 4], ], 'group_permission' => [ - ['permission' => 'discussion.polls.start', 'group_id' => 4] + ['permission' => 'discussion.polls.start', 'group_id' => 4], ], ]); } @@ -52,7 +61,7 @@ public function normal_user_does_not_have_discussion_polls_start_permission() { $response = $this->send( $this->request('GET', '/api', [ - 'authenticatedAs' => 2 + 'authenticatedAs' => 2, ]) ); @@ -70,7 +79,7 @@ public function user_with_discussion_polls_start_permission_has_discussion_polls { $response = $this->send( $this->request('GET', '/api', [ - 'authenticatedAs' => 3 + 'authenticatedAs' => 3, ]) ); diff --git a/tests/integration/setup.php b/tests/integration/setup.php index 67039c08..d0d1c31d 100644 --- a/tests/integration/setup.php +++ b/tests/integration/setup.php @@ -1,10 +1,12 @@