From 33477f8d4e67f4f5121dabe331bb2577da315e4d Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 12 Jun 2024 10:27:28 +0900 Subject: [PATCH] test: add test for if_exist and array data --- tests/system/Validation/RulesTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/system/Validation/RulesTest.php b/tests/system/Validation/RulesTest.php index 25b3510323..a2556085e5 100644 --- a/tests/system/Validation/RulesTest.php +++ b/tests/system/Validation/RulesTest.php @@ -100,6 +100,12 @@ class RulesTest extends CIUnitTestCase ['foo' => ''], false, ], + // Invalid array input + [ + ['foo' => 'if_exist|alpha'], + ['foo' => ['bar' => '12345']], + false, + ], // Input data does not exist then the other rules will be ignored [ ['foo' => 'if_exist|required'],