Skip to content

Commit e3b8fee

Browse files
author
Harrison Ifeanyichukwu
committed
test: update requireIf test keys to requiredIf
1 parent 595baeb commit e3b8fee

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/HandlerTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ public function filterTestDataProvider()
247247
}
248248

249249
/**
250-
* return test data used for testing requireIf conditions
250+
* return test data used for testing requiredIf conditions
251251
*/
252-
public function requireIfTestDataProvider()
252+
public function requiredIfTestDataProvider()
253253
{
254254
return [
255255
//test not checked condition
@@ -271,7 +271,7 @@ public function requireIfTestDataProvider()
271271
'from' => 1,
272272
'to' => 12
273273
],
274-
'requireIf' => [
274+
'requiredIf' => [
275275
'condition' => 'notChecked',
276276
'field' => 'is-current-work'
277277
],
@@ -282,7 +282,7 @@ public function requireIfTestDataProvider()
282282
'from' => 1920,
283283
'to' => '{CURRENT_YEAR}',
284284
],
285-
'requireIf' => [
285+
'requiredIf' => [
286286
'condition' => 'notChecked',
287287
'field' => 'is-current-work'
288288
],
@@ -316,7 +316,7 @@ public function requireIfTestDataProvider()
316316
'from' => 1,
317317
'to' => 12
318318
],
319-
'requireIf' => [
319+
'requiredIf' => [
320320
'condition' => 'notChecked',
321321
'field' => 'is-current-work'
322322
],
@@ -327,7 +327,7 @@ public function requireIfTestDataProvider()
327327
'from' => 1920,
328328
'to' => date('Y'),
329329
],
330-
'requireIf' => [
330+
'requiredIf' => [
331331
'condition' => 'notChecked',
332332
'field' => 'is-current-work'
333333
],
@@ -356,7 +356,7 @@ public function requireIfTestDataProvider()
356356
],
357357
'email' => [
358358
'type' => 'email',
359-
'requireIf' => [
359+
'requiredIf' => [
360360
'condition' => 'checked',
361361
'field' => 'join-newsletter'
362362
],
@@ -385,7 +385,7 @@ public function requireIfTestDataProvider()
385385
],
386386
'email' => [
387387
'type' => 'email',
388-
'requireIf' => [
388+
'requiredIf' => [
389389
'condition' => 'checked',
390390
'field' => 'join-newsletter'
391391
],
@@ -413,7 +413,7 @@ public function requireIfTestDataProvider()
413413
],
414414
'email' => [
415415
'type' => 'email',
416-
'requireIf' => [
416+
'requiredIf' => [
417417
'condition' => 'checked',
418418
'field' => 'join-newsletter'
419419
],
@@ -451,7 +451,7 @@ public function requireIfTestDataProvider()
451451

452452
//need to
453453
'calling-code' => [
454-
'requireIf' => [
454+
'requiredIf' => [
455455
'condition' => 'notEquals',
456456
'field' => 'country',
457457
'value' => 'ng'
@@ -487,7 +487,7 @@ public function requireIfTestDataProvider()
487487

488488
//need to
489489
'calling-code' => [
490-
'requireIf' => [
490+
'requiredIf' => [
491491
'condition' => 'notEqual',
492492
'field' => 'country',
493493
'value' => 'ng'
@@ -522,7 +522,7 @@ public function requireIfTestDataProvider()
522522
//tell us your salary demand if you are in nigeria, other countries
523523
//are paid equal amount of $50,000 yearly
524524
'salary-demand' => [
525-
'requireIf' => [
525+
'requiredIf' => [
526526
'condition' => 'Equal',
527527
'field' => 'country',
528528
'value' => 'ng'
@@ -557,7 +557,7 @@ public function requireIfTestDataProvider()
557557
//tell us your salary demand if you are in nigeria, other countries
558558
//are paid equal amount of $50,000 yearly
559559
'salary-demand' => [
560-
'requireIf' => [
560+
'requiredIf' => [
561561
'condition' => 'Equal',
562562
'field' => 'country',
563563
'value' => 'ng'
@@ -593,7 +593,7 @@ public function requireIfTestDataProvider()
593593
//tell us your salary demand if you are in nigeria, other countries
594594
//are paid equal amount of $50,000 yearly
595595
'salary-demand' => [
596-
'requireIf' => [
596+
'requiredIf' => [
597597
'condition' => 'Equal',
598598
'field' => 'country',
599599
'value' => 'ng'
@@ -903,9 +903,9 @@ public function testFilters(...$args)
903903
}
904904

905905
/**
906-
*@dataProvider requireIfTestDataProvider
906+
*@dataProvider requiredIfTestDataProvider
907907
*/
908-
public function testRequireIfConditions(...$args)
908+
public function testrequiredIfConditions(...$args)
909909
{
910910
$this->executeHandlerFeature(...$args);
911911
}

0 commit comments

Comments
 (0)