@@ -151,7 +151,7 @@ public function test_validate_props() {
151151 // Invalid status.
152152 $ this ->run_event_save_test ( [
153153 'creation ' => [
154- 'args ' => [
154+ 'args ' => [
155155 'timestamp ' => 1637447873 ,
156156 'action ' => 'test_event ' ,
157157 'status ' => 'invalid_status ' ,
@@ -163,7 +163,7 @@ public function test_validate_props() {
163163 // Invalid/missing action.
164164 $ this ->run_event_save_test ( [
165165 'creation ' => [
166- 'args ' => [
166+ 'args ' => [
167167 'timestamp ' => 1637447873 ,
168168 'action ' => '' ,
169169 ],
@@ -174,15 +174,15 @@ public function test_validate_props() {
174174 // Missing timestamp.
175175 $ this ->run_event_save_test ( [
176176 'creation ' => [
177- 'args ' => [ 'action ' => 'test_event ' ],
177+ 'args ' => [ 'action ' => 'test_event ' ],
178178 'result ' => new WP_Error ( 'cron-control:event:prop-validation:invalid-timestamp ' ),
179179 ],
180180 ] );
181181
182182 // Invalid timestamp.
183183 $ this ->run_event_save_test ( [
184184 'creation ' => [
185- 'args ' => [
185+ 'args ' => [
186186 'timestamp ' => -100 ,
187187 'action ' => 'test_event ' ,
188188 ],
@@ -193,7 +193,7 @@ public function test_validate_props() {
193193 // Invalid schedule.
194194 $ this ->run_event_save_test ( [
195195 'creation ' => [
196- 'args ' => [
196+ 'args ' => [
197197 'timestamp ' => 1637447873 ,
198198 'action ' => 'test_event ' ,
199199 'schedule ' => '' ,
@@ -206,7 +206,7 @@ public function test_validate_props() {
206206 // Invalid interval.
207207 $ this ->run_event_save_test ( [
208208 'creation ' => [
209- 'args ' => [
209+ 'args ' => [
210210 'timestamp ' => 1637447873 ,
211211 'action ' => 'test_event ' ,
212212 'schedule ' => 'hourly ' ,
@@ -223,7 +223,7 @@ public function test_event_save() {
223223 // Then update the timestamp.
224224 $ this ->run_event_save_test ( [
225225 'creation ' => [
226- 'args ' => [
226+ 'args ' => [
227227 'action ' => 'test_event_creations_1 ' ,
228228 'timestamp ' => 1637447872 ,
229229 ],
@@ -236,8 +236,8 @@ public function test_event_save() {
236236 'timestamp ' => 1637447872 ,
237237 ],
238238 ],
239- 'update ' => [
240- 'args ' => [ 'timestamp ' => 1637447872 + 500 ],
239+ 'update ' => [
240+ 'args ' => [ 'timestamp ' => 1637447872 + 500 ],
241241 'result ' => [
242242 'status ' => 'pending ' ,
243243 'action ' => 'test_event_creations_1 ' ,
@@ -253,7 +253,7 @@ public function test_event_save() {
253253 // Then try to update with invalid timestamp
254254 $ this ->run_event_save_test ( [
255255 'creation ' => [
256- 'args ' => [
256+ 'args ' => [
257257 'status ' => 'complete ' ,
258258 'action ' => 'test_event_creations_2 ' ,
259259 'args ' => [ 'some ' => 'data ' ],
@@ -270,8 +270,8 @@ public function test_event_save() {
270270 'timestamp ' => 1637447873 ,
271271 ],
272272 ],
273- 'update ' => [
274- 'args ' => [ 'timestamp ' => -1 ],
273+ 'update ' => [
274+ 'args ' => [ 'timestamp ' => -1 ],
275275 'result ' => new WP_Error ( 'cron-control:event:prop-validation:invalid-timestamp ' ),
276276 ],
277277 ] );
0 commit comments