diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-10-16 01:35:15 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-10-16 01:35:15 +0100 |
| commit | 1a218474113038005e50986fff24ebcbd58554ff (patch) | |
| tree | 74bc141f6d951e9d71acd7cbadc71d18357ba031 | |
| parent | e1f1401b27e6cdde2bc79bed3187f6d90b35eb47 (diff) | |
| download | webtrees-1a218474113038005e50986fff24ebcbd58554ff.tar.gz webtrees-1a218474113038005e50986fff24ebcbd58554ff.tar.bz2 webtrees-1a218474113038005e50986fff24ebcbd58554ff.zip | |
Long lines
| -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()); |
