diff options
author | msquare <msquare@notrademark.de> | 2019-10-13 13:43:08 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-10-13 13:43:08 +0200 |
commit | c0e97bfe753013b115345b00cbfd9858799a6ac9 (patch) | |
tree | 7e98447e4c7d874ec27e26801771086843f3efc3 /tests/Unit/Http/Exceptions/HttpNotFoundTest.php | |
parent | 285f5509dd948c2359c861eec364a677e8ce4910 (diff) | |
parent | 7a2427e70296ef652f76fe2e2edc47d2e0f70f5a (diff) |
Password recovery rebuild, correctly translated Mails and some minor fixes #658
Diffstat (limited to 'tests/Unit/Http/Exceptions/HttpNotFoundTest.php')
-rw-r--r-- | tests/Unit/Http/Exceptions/HttpNotFoundTest.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/Unit/Http/Exceptions/HttpNotFoundTest.php b/tests/Unit/Http/Exceptions/HttpNotFoundTest.php new file mode 100644 index 00000000..a39ea087 --- /dev/null +++ b/tests/Unit/Http/Exceptions/HttpNotFoundTest.php @@ -0,0 +1,22 @@ +<?php + +namespace Engelsystem\Test\Unit\Http\Exceptions; + +use Engelsystem\Http\Exceptions\HttpNotFound; +use PHPUnit\Framework\TestCase; + +class HttpNotFoundTest extends TestCase +{ + /** + * @covers \Engelsystem\Http\Exceptions\HttpNotFound::__construct + */ + public function testConstruct() + { + $exception = new HttpNotFound(); + $this->assertEquals(404, $exception->getStatusCode()); + $this->assertEquals('', $exception->getMessage()); + + $exception = new HttpNotFound('Nothing to see here!'); + $this->assertEquals('Nothing to see here!', $exception->getMessage()); + } +} |