From c1fe38d076f1aaea4748ba4f62bf1d1cd92c060f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 23 Mar 2023 08:05:08 +0100 Subject: [PATCH] Add ValidationHelperTest.php --- tests/Unit/Helper/ValidationHelperTest.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/Unit/Helper/ValidationHelperTest.php diff --git a/tests/Unit/Helper/ValidationHelperTest.php b/tests/Unit/Helper/ValidationHelperTest.php new file mode 100644 index 00000000..e13543c6 --- /dev/null +++ b/tests/Unit/Helper/ValidationHelperTest.php @@ -0,0 +1,19 @@ +assertTrue(validate_datetime(date('Y-m-d H:i:s'))); + } + + public function testValidateDateTimeReturnsFalseOnInvalidValue() + { + $this->assertFalse(validate_datetime('invalid')); + } +}