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 Nov 30, 2023
1 parent 5c01112 commit 82757e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
17 changes: 13 additions & 4 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/oauth.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace FoF\OAuth\Tests\integration\api;

use Flarum\Extend;
Expand All @@ -12,7 +21,7 @@ public function setUp(): void
$this->extension('fof-oauth');

$this->extend(
(new Extend\Csrf)->exemptRoute('login')
(new Extend\Csrf())->exemptRoute('login')
);
}

Expand Down Expand Up @@ -57,13 +66,13 @@ public function admin_panel_is_available()
$this->request('POST', '/login', [
'json' => [
'identification' => 'admin',
'password' => 'password'
]
'password' => 'password',
],
])
);

$this->assertEquals(200, $login->getStatusCode());

$response = $this->send(
$this->request('GET', '/admin', ['cookiesFrom' => $login])
);
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/oauth.
*
* 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 82757e3

Please sign in to comment.