diff --git a/framework/core/tests/integration/api/users/UpdateTest.php b/framework/core/tests/integration/api/users/UpdateTest.php index a80e654261..970af56342 100644 --- a/framework/core/tests/integration/api/users/UpdateTest.php +++ b/framework/core/tests/integration/api/users/UpdateTest.php @@ -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() @@ -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() @@ -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() diff --git a/framework/core/tests/integration/extenders/ApiControllerTest.php b/framework/core/tests/integration/extenders/ApiControllerTest.php index 907cbc2e2a..340ecde5f8 100644 --- a/framework/core/tests/integration/extenders/ApiControllerTest.php +++ b/framework/core/tests/integration/extenders/ApiControllerTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/ConsoleTest.php b/framework/core/tests/integration/extenders/ConsoleTest.php index b98bc57907..a1433f26c8 100644 --- a/framework/core/tests/integration/extenders/ConsoleTest.php +++ b/framework/core/tests/integration/extenders/ConsoleTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/FrontendTitleTest.php b/framework/core/tests/integration/extenders/FrontendTitleTest.php index 39f5530a5e..74c1672e23 100644 --- a/framework/core/tests/integration/extenders/FrontendTitleTest.php +++ b/framework/core/tests/integration/extenders/FrontendTitleTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/MailTest.php b/framework/core/tests/integration/extenders/MailTest.php index d895168c68..2354af990e 100644 --- a/framework/core/tests/integration/extenders/MailTest.php +++ b/framework/core/tests/integration/extenders/MailTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/MiddlewareTest.php b/framework/core/tests/integration/extenders/MiddlewareTest.php index 4da730bf94..8f171a6e60 100644 --- a/framework/core/tests/integration/extenders/MiddlewareTest.php +++ b/framework/core/tests/integration/extenders/MiddlewareTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/RoutesTest.php b/framework/core/tests/integration/extenders/RoutesTest.php index a3af52aa82..3117a59e77 100644 --- a/framework/core/tests/integration/extenders/RoutesTest.php +++ b/framework/core/tests/integration/extenders/RoutesTest.php @@ -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 { diff --git a/framework/core/tests/integration/extenders/SessionTest.php b/framework/core/tests/integration/extenders/SessionTest.php index e0959bf3ca..2f89355be7 100644 --- a/framework/core/tests/integration/extenders/SessionTest.php +++ b/framework/core/tests/integration/extenders/SessionTest.php @@ -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 { diff --git a/framework/core/tests/unit/Foundation/ConfigTest.php b/framework/core/tests/unit/Foundation/ConfigTest.php index dc96b00e8e..4f3d03f9df 100644 --- a/framework/core/tests/unit/Foundation/ConfigTest.php +++ b/framework/core/tests/unit/Foundation/ConfigTest.php @@ -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 { diff --git a/framework/core/tests/unit/Foundation/RouteCollectionTest.php b/framework/core/tests/unit/Foundation/RouteCollectionTest.php index b400bf1819..d1f1c2d3b8 100644 --- a/framework/core/tests/unit/Foundation/RouteCollectionTest.php +++ b/framework/core/tests/unit/Foundation/RouteCollectionTest.php @@ -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 {