diff options
| -rw-r--r-- | tests/TestCase.php | 8 | ||||
| -rw-r--r-- | tests/feature/UserAdminTest.php | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/tests/TestCase.php b/tests/TestCase.php index 624b65a2d2..a168a1e0c7 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -157,8 +157,12 @@ class TestCase extends \PHPUnit\Framework\TestCase * * @return ServerRequestInterface */ - protected static function createRequest(string $method = RequestMethodInterface::METHOD_GET, array $query = [], array $params = [], array $files = []): ServerRequestInterface - { + protected static function createRequest( + string $method = RequestMethodInterface::METHOD_GET, + array $query = [], + array $params = [], + array $files = [] + ): ServerRequestInterface { /** @var ServerRequestFactoryInterface */ $server_request_factory = app(ServerRequestFactoryInterface::class); diff --git a/tests/feature/UserAdminTest.php b/tests/feature/UserAdminTest.php index 695f4d2a90..de175f62bc 100644 --- a/tests/feature/UserAdminTest.php +++ b/tests/feature/UserAdminTest.php @@ -44,7 +44,8 @@ class UserAdminTest extends TestCase $user_service->create('UserName', 'RealName', 'user@example.com', 'secret'); $controller = app(UsersController::class); - $request = self::createRequest(RequestMethodInterface::METHOD_GET, ['length' => '10',])->withAttribute('user', $admin); + $request = self::createRequest(RequestMethodInterface::METHOD_GET, ['length' => '10']) + ->withAttribute('user', $admin); $response = $controller->data($request); $this->assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); |
