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 Aug 2, 2024
1 parent 0ed6c35 commit e6dfe8c
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 15 deletions.
9 changes: 3 additions & 6 deletions framework/core/tests/integration/api/users/UpdateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ public function users_can_not_see_other_users_private_information()
}

/**
*
* This tests the generic user.edit permission used for non-credential/group attributes
* This tests the generic user.edit permission used for non-credential/group attributes.
*/
#[Test]
public function users_can_update_own_avatar()
Expand Down Expand Up @@ -309,8 +308,7 @@ public function users_cant_activate_themselves()
}

/**
*
* This tests the generic user.edit permission used for non-credential/group attributes
* This tests the generic user.edit permission used for non-credential/group attributes.
*/
#[Test]
public function users_cant_update_others_avatars_without_permission()
Expand Down Expand Up @@ -407,8 +405,7 @@ public function users_cant_activate_others_without_permission()
}

/**
*
* This tests the generic user.edit permission used for non-credential/group attributes
* This tests the generic user.edit permission used for non-credential/group attributes.
*/
#[Test]
public function users_can_update_others_avatars_with_permissions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
use Flarum\Testing\integration\TestCase;
use Flarum\User\User;
use Illuminate\Support\Arr;
use Tobyz\JsonApiServer\Schema\Field\Field;
use PHPUnit\Framework\Attributes\Test;
use Tobyz\JsonApiServer\Schema\Field\Field;

class ApiControllerTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/tests/integration/extenders/ConsoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
use Flarum\Extend;
use Flarum\Testing\integration\ConsoleTestCase;
use Illuminate\Console\Scheduling\Event;
use PHPUnit\Framework\Attributes\Test;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Exception\CommandNotFoundException;
use PHPUnit\Framework\Attributes\Test;

class ConsoleTest extends ConsoleTestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
use Flarum\Testing\integration\TestCase;
use Flarum\User\User;
use Psr\Http\Message\ServerRequestInterface;
use PHPUnit\Framework\Attributes\Test;
use Psr\Http\Message\ServerRequestInterface;

class FrontendTitleTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/tests/integration/extenders/MailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use Flarum\Testing\integration\TestCase;
use Illuminate\Contracts\Validation\Factory;
use Illuminate\Support\MessageBag;
use PHPUnit\Framework\Attributes\Test;
use Symfony\Component\Mailer\Transport\NullTransport;
use Symfony\Component\Mailer\Transport\TransportInterface;
use PHPUnit\Framework\Attributes\Test;

class MailTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

use Flarum\Extend;
use Flarum\Testing\integration\TestCase;
use PHPUnit\Framework\Attributes\Test;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\Attributes\Test;

class MiddlewareTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/tests/integration/extenders/RoutesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
use Flarum\Extend;
use Flarum\Testing\integration\TestCase;
use Laminas\Diactoros\Response\TextResponse;
use PHPUnit\Framework\Attributes\Test;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use PHPUnit\Framework\Attributes\Test;

class RoutesTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/tests/integration/extenders/SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
use Illuminate\Session\FileSessionHandler;
use Illuminate\Session\NullSessionHandler;
use InvalidArgumentException;
use SessionHandlerInterface;
use PHPUnit\Framework\Attributes\Test;
use SessionHandlerInterface;

class SessionTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion framework/core/tests/unit/Foundation/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
use Flarum\Foundation\MaintenanceMode;
use Flarum\Testing\unit\TestCase;
use InvalidArgumentException;
use RuntimeException;
use PHPUnit\Framework\Attributes\Test;
use RuntimeException;

class ConfigTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

use Flarum\Http\RouteCollection;
use Flarum\Testing\unit\TestCase;
use RuntimeException;
use PHPUnit\Framework\Attributes\Test;
use RuntimeException;

class RouteCollectionTest extends TestCase
{
Expand Down

0 comments on commit e6dfe8c

Please sign in to comment.