summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAsko Nõmm <asko@repl.ee>2023-09-25 01:35:47 +0300
committerAsko Nõmm <asko@repl.ee>2023-09-25 01:35:47 +0300
commitef1dd318d437bb33adddf226c546e85f4744ce8c (patch)
tree8910bd4cc0b2ce2827aecfa19ecf2453058af575 /tests
parentd2a1290423e1102b23fc8e042cef5420a42c02af (diff)
Update stuff
Diffstat (limited to 'tests')
-rw-r--r--tests/HirdTest.php10
1 files changed, 5 insertions, 5 deletions
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 @@
<?php
-use Askonomm\Hird\Hird;
+use Asko\Hird\Hird;
test('Validate a correct e-mail address', function () {
$fields = ['email' => '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.',
]);