From 55beca95cd8d6ecfe610daea304c8374a10485af Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 27 Nov 2018 13:34:55 +0100 Subject: Refactoring: Throw HttpAuthExpired on csrf token mismatch --- tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php (limited to 'tests/Unit/Http') diff --git a/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php b/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php new file mode 100644 index 00000000..4eaee032 --- /dev/null +++ b/tests/Unit/Http/Exceptions/HttpAuthExpiredTest.php @@ -0,0 +1,22 @@ +assertEquals(419, $exception->getStatusCode()); + $this->assertEquals('Authentication Expired', $exception->getMessage()); + + $exception = new HttpAuthExpired('Oops!'); + $this->assertEquals('Oops!', $exception->getMessage()); + } +} -- cgit v1.2.3-54-g00ecf