Skip to content

Commit ff3323f

Browse files
committed
updated tests
1 parent 7932e12 commit ff3323f

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

tests/unit/Mage/Newsletter/Model/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function validateTemplateDataProvider(): Generator
8181
$data = $validData;
8282
$data['setTemplateSenderEmail'] = null;
8383
yield 'missing sender email' => [
84-
'You must give a non-empty value for field \'template_sender_email\'',
84+
'\'invalid-email\' is not a valid email address in the basic format local-part@hostname',
8585
$data,
8686
];
8787

tests/unit/Traits/DataProvider/Mage/Admin/Model/BlockTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function provideValidateAdminBlockData(): Generator
3535
yield 'errors: blank blockname' => [
3636
[
3737
'Block Name is required field.',
38-
'Block Name is incorrect.',
3938
'Is Allowed is required field.',
4039
],
4140
[

tests/unit/Traits/DataProvider/Mage/Api/Model/UserTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public function provideValidateApiUserData(): Generator
8080
yield 'missing api key' => [
8181
[
8282
$errorLength,
83-
$errorAlphaNumeric,
8483
$errorIdentical,
8584
],
8685
$data,

tests/unit/Traits/DataProvider/Mage/Customer/CustomerTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,31 +92,31 @@ public function provideValidateCustomerData(): Generator
9292
$data['getDob'] = '';
9393
$data['shouldValidateDob'] = true;
9494
yield 'missing dob' => [
95-
true, # ['The Date of Birth is required.'],
95+
['The Date of Birth is required.'],
9696
$data,
9797
];
9898

9999
$data = $validCustomer;
100100
$data['getDob'] = 'abc';
101101
$data['shouldValidateDob'] = true;
102102
yield 'invalid dob' => [
103-
true, # ['This value is not a valid date.'],
103+
['This value is not a valid date.'],
104104
$data,
105105
];
106106

107107
$data = $validCustomer;
108108
$data['getTaxvat'] = '';
109109
$data['shouldValidateTaxvat'] = true;
110110
yield 'missing taxvat' => [
111-
true, # ['The TAX/VAT number is required.'],
111+
['The TAX/VAT number is required.'],
112112
$data,
113113
];
114114

115115
$data = $validCustomer;
116116
$data['getGender'] = '';
117117
$data['shouldValidateGender'] = true;
118118
yield 'missing gender' => [
119-
true, # ['Gender is required.'],
119+
['Gender is required.'],
120120
$data,
121121
];
122122
}

0 commit comments

Comments
 (0)