From 7414f9b23dbcc66e5f0efda3d0cbfd79372ec780 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 9 Jul 2019 21:43:18 +0200 Subject: Implemented Validation for controllers --- .../Http/Exceptions/ValidationExceptionTest.php | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/Unit/Http/Exceptions/ValidationExceptionTest.php (limited to 'tests/Unit/Http/Exceptions') diff --git a/tests/Unit/Http/Exceptions/ValidationExceptionTest.php b/tests/Unit/Http/Exceptions/ValidationExceptionTest.php new file mode 100644 index 00000000..c5a38b5a --- /dev/null +++ b/tests/Unit/Http/Exceptions/ValidationExceptionTest.php @@ -0,0 +1,25 @@ +createMock(Validator::class); + + $exception = new ValidationException($validator); + + $this->assertEquals($validator, $exception->getValidator()); + } +} -- cgit v1.2.3-54-g00ecf