File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/unit/Mage/Contacts/Controllers Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ public function postActionDataProvider(): Generator
81
81
'comment ' => 'Test comment ' ,
82
82
];
83
83
84
+ $ error = 'Unable to submit your request. Please, try again later ' ;
85
+
84
86
yield 'valid data ' => [
85
87
$ validData ,
86
88
true ,
@@ -98,31 +100,31 @@ public function postActionDataProvider(): Generator
98
100
yield 'missing name ' => [
99
101
$ data ,
100
102
true ,
101
- ' Unable to submit your request. Please, try again later ' ,
103
+ $ error ,
102
104
];
103
105
104
106
$ data = $ validData ;
105
107
$ data ['email ' ] = '' ;
106
108
yield 'missing email ' => [
107
109
$ data ,
108
110
true ,
109
- ' Unable to submit your request. Please, try again later ' ,
111
+ $ error ,
110
112
];
111
113
112
114
$ data = $ validData ;
113
115
$ data ['email ' ] = 'invalid-email ' ;
114
116
yield 'invalid email ' => [
115
117
$ data ,
116
118
true ,
117
- ' Unable to submit your request. Please, try again later ' ,
119
+ $ error ,
118
120
];
119
121
120
122
$ data = $ validData ;
121
123
$ data ['comment ' ] = '' ;
122
124
yield 'missing comment ' => [
123
125
$ data ,
124
126
true ,
125
- ' Unable to submit your request. Please, try again later ' ,
127
+ $ error ,
126
128
];
127
129
}
128
130
}
You can’t perform that action at this time.
0 commit comments