Skip to content

Commit 7df9000

Browse files
committed
update
1 parent 2869035 commit 7df9000

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/unit/Mage/Contacts/Controllers/IndexControllerTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public function postActionDataProvider(): Generator
8181
'comment' => 'Test comment',
8282
];
8383

84+
$error = 'Unable to submit your request. Please, try again later';
85+
8486
yield 'valid data' => [
8587
$validData,
8688
true,
@@ -98,31 +100,31 @@ public function postActionDataProvider(): Generator
98100
yield 'missing name' => [
99101
$data,
100102
true,
101-
'Unable to submit your request. Please, try again later',
103+
$error,
102104
];
103105

104106
$data = $validData;
105107
$data['email'] = '';
106108
yield 'missing email' => [
107109
$data,
108110
true,
109-
'Unable to submit your request. Please, try again later',
111+
$error,
110112
];
111113

112114
$data = $validData;
113115
$data['email'] = 'invalid-email';
114116
yield 'invalid email' => [
115117
$data,
116118
true,
117-
'Unable to submit your request. Please, try again later',
119+
$error,
118120
];
119121

120122
$data = $validData;
121123
$data['comment'] = '';
122124
yield 'missing comment' => [
123125
$data,
124126
true,
125-
'Unable to submit your request. Please, try again later',
127+
$error,
126128
];
127129
}
128130
}

0 commit comments

Comments
 (0)