From 3a7ca1c47a5e1a6820c38dc39e1a129be64ecc93 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Sun, 27 Feb 2022 21:15:46 +0100 Subject: Update tests --- tests/HirdTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/HirdTest.php') diff --git a/tests/HirdTest.php b/tests/HirdTest.php index 273eff6..ef217a1 100644 --- a/tests/HirdTest.php +++ b/tests/HirdTest.php @@ -14,6 +14,7 @@ test('Validate an incorrect e-mail address', function () { $fields = ['email' => 'this-is-not-right']; $rules = ['email' => 'email']; $hird = new Hird($fields, $rules); + $hird->fails(); expect($hird->errors())->toBe([ 'email is not a valid e-mail address.' @@ -32,6 +33,7 @@ test('Validate an incorrect length of string', function () { $fields = ['string' => 'i-am-short']; $rules = ['string' => 'len:15']; $hird = new Hird($fields, $rules); + $hird->fails(); expect($hird->errors())->toBe([ 'string is shorter than the required 15 characters.' @@ -60,6 +62,7 @@ test('Validate an incorrect required string', function () { ]; $hird = new Hird($fields, $rules); + $hird->fails(); expect($hird->errors())->toBe([ 'empty-string is required.', -- cgit v1.2.3