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 Dec 15, 2023
1 parent 480f864 commit 7ee496d
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/UserPrivacyTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

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

namespace FoF\Byobu\Tests\integration\api;

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

public function setUp(): void
{
parent::setUp();
Expand All @@ -18,7 +27,7 @@ public function setUp(): void
$this->prepareDatabase([
'users' => [
$this->normalUser(),
]
],
]);
}

Expand All @@ -33,7 +42,7 @@ public function user_can_set_block_pd_setting()
'/api/users/2',
[
'authenticatedAs' => 2,
'json' => [
'json' => [
'data' => [
'attributes' => [
'blocksPd' => true,
Expand All @@ -45,7 +54,7 @@ public function user_can_set_block_pd_setting()
);

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

$json = json_decode($response->getBody()->getContents(), true);

$this->assertTrue($json['data']['attributes']['blocksPd']);
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/byobu.
*
* 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 7ee496d

Please sign in to comment.