From ef1dd318d437bb33adddf226c546e85f4744ce8c Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Mon, 25 Sep 2023 01:35:47 +0300 Subject: Update stuff --- tests/HirdTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/HirdTest.php b/tests/HirdTest.php index 9b00506..9e49467 100644 --- a/tests/HirdTest.php +++ b/tests/HirdTest.php @@ -1,6 +1,6 @@ 'asko@bien.ee']; @@ -70,20 +70,20 @@ test('Validate an incorrect required string', function () { ]); }); -test('Validate a correct date format', function() { +test('Validate a correct date format', function () { $fields = ['date' => '2020-09-17 15:00:12']; $rules = ['date' => 'date-format:Y-m-d H:i:s']; $hird = new Hird($fields, $rules); - + expect($hird->fails())->tobeFalse(); }); -test('Validate an incorrect correct date format', function() { +test('Validate an incorrect correct date format', function () { $fields = ['date' => '2020-09-17 15:00']; $rules = ['date' => 'date-format:Y-m-d H:i:s']; $hird = new Hird($fields, $rules); $hird->fails(); - + expect($hird->errors())->toBe([ 'date does not match the required date format Y-m-d H:i:s.', ]); -- cgit v1.2.3