diff options
Diffstat (limited to 'tests/app/Http/Middleware/AuthModeratorTest.php')
| -rw-r--r-- | tests/app/Http/Middleware/AuthModeratorTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/app/Http/Middleware/AuthModeratorTest.php b/tests/app/Http/Middleware/AuthModeratorTest.php index ca305c94de..ba271cf640 100644 --- a/tests/app/Http/Middleware/AuthModeratorTest.php +++ b/tests/app/Http/Middleware/AuthModeratorTest.php @@ -18,6 +18,7 @@ declare(strict_types=1); namespace Fisharebest\Webtrees\Http\Middleware; +use Fig\Http\Message\StatusCodeInterface; use Fisharebest\Webtrees\GuestUser; use Fisharebest\Webtrees\TestCase; use Fisharebest\Webtrees\Tree; @@ -51,7 +52,7 @@ class AuthModeratorTest extends TestCase $middleware = new AuthModerator(); $response = $middleware->process($request, $handler); - $this->assertSame(self::STATUS_OK, $response->getStatusCode()); + $this->assertSame(StatusCodeInterface::STATUS_OK, $response->getStatusCode()); $this->assertSame('lorem ipsum', (string) $response->getBody()); } @@ -89,6 +90,6 @@ class AuthModeratorTest extends TestCase $middleware = new AuthModerator(); $response = $middleware->process($request, $handler); - $this->assertSame(self::STATUS_FOUND, $response->getStatusCode()); + $this->assertSame(StatusCodeInterface::STATUS_FOUND, $response->getStatusCode()); } } |
