From 22b72b01bca816893cdc9b5ad4791e60c650bdcd Mon Sep 17 00:00:00 2001 From: Kabirou ALASSANE Date: Fri, 17 Nov 2023 00:30:15 +0100 Subject: [PATCH] Unit Test: fix bug on unit test using pest issues --- tests/RulesTest.php | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 tests/RulesTest.php diff --git a/tests/RulesTest.php b/tests/RulesTest.php deleted file mode 100644 index 16e935b..0000000 --- a/tests/RulesTest.php +++ /dev/null @@ -1,44 +0,0 @@ -does(fn () => (new StringRule([]))->passes('name', 'John', [])) -// ->assertTrue(); - -// it('throws exception for invalid string rule') -// ->expectException(ValidatorException::class) -// ->expectExceptionMessage( -// LangManager::getTranslation('validation.string_rule', ['attribute' => 'name']) -// ) -// ->does(fn () => (new StringRule([]))->passes('name', 123, [])); - -// it('validates required rule successfully') -// ->does(fn () => (new RequiredRule([]))->passes('name', 'John', [])) -// ->assertTrue(); - -// it('throws exception for invalid required rule') -// ->expectException(ValidatorException::class) -// ->expectExceptionMessage( -// LangManager::getTranslation('validation.required_rule', ['attribute' => 'name']) -// ) -// ->does(fn () => (new RequiredRule([]))->passes('name', null, [])); - -// it('validates max length rule successfully') -// ->does(fn () => (new MaxLengthRule([5]))->passes('name', 'John', [])) -// ->assertTrue(); - -// it('throws exception for invalid max length rule') -// ->expectException(ValidatorException::class) -// ->expectExceptionMessage( -// LangManager::getTranslation('validation.max_length_rule', ['attribute' => 'name', 'max' => 5]) -// ) -// ->does(fn () => (new MaxLengthRule([5]))->passes('name', 'Jonathan', []));