From c9d7e88cc70b6ad124c28be479a6e64c4b174ea6 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 14 Nov 2018 02:17:27 +0100 Subject: Implemented controller permissions --- tests/Unit/Http/Exceptions/HttpForbiddenTest.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Unit/Http/Exceptions/HttpForbiddenTest.php (limited to 'tests/Unit/Http/Exceptions') diff --git a/tests/Unit/Http/Exceptions/HttpForbiddenTest.php b/tests/Unit/Http/Exceptions/HttpForbiddenTest.php new file mode 100644 index 00000000..765a20d2 --- /dev/null +++ b/tests/Unit/Http/Exceptions/HttpForbiddenTest.php @@ -0,0 +1,22 @@ +assertEquals(403, $exception->getStatusCode()); + $this->assertEquals('', $exception->getMessage()); + + $exception = new HttpForbidden('Go away!'); + $this->assertEquals('Go away!', $exception->getMessage()); + } +} -- cgit v1.2.3-54-g00ecf