Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 29, 2024
1 parent 49f5bd1 commit 1184e93
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
21 changes: 15 additions & 6 deletions tests/integration/api/ForumSerializerTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of fof/polls.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FoF\Polls\Tests\integration\api;

use Flarum\Testing\integration\RetrievesAuthorizedUsers;
Expand All @@ -8,7 +17,7 @@
class ForumSerializerTest extends TestCase
{
use RetrievesAuthorizedUsers;

public function setUp(): void
{
parent::setUp();
Expand All @@ -18,13 +27,13 @@ public function setUp(): void
$this->prepareDatabase([
'users' => [
$this->normalUser(),
['id' => 3, 'username' => 'pollsuser', 'email' => '[email protected]', 'password' => 'too-obscure', 'is_email_confirmed' => 1]
['id' => 3, 'username' => 'pollsuser', 'email' => '[email protected]', '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],
],
]);
}
Expand Down Expand Up @@ -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,
])
);

Expand All @@ -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,
])
);

Expand Down
8 changes: 5 additions & 3 deletions tests/integration/setup.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/*
* This file is part of Flarum.
* This file is part of fof/polls.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use Flarum\Testing\integration\Setup\SetupScript;
Expand Down

0 comments on commit 1184e93

Please sign in to comment.