@@ -116,7 +116,7 @@ public function testCreate()
116
116
]
117
117
];
118
118
119
- $ actualResult = $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
119
+ $ actualResult = $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
120
120
$ targetProduct = $ this ->getTargetSimpleProduct ();
121
121
$ mediaGallery = $ targetProduct ->getData ('media_gallery ' );
122
122
@@ -151,6 +151,7 @@ public function testCreateWithNotDefaultStoreId()
151
151
$ actualResult = $ this ->_webApiCall (
152
152
$ this ->createServiceInfo ,
153
153
[
154
+ 'sku ' => 'simple ' ,
154
155
'entry ' => $ requestData ,
155
156
'storeId ' => 1 ,
156
157
]
@@ -288,7 +289,7 @@ public function testCreateThrowsExceptionIfThereIsNoStoreWithProvidedStoreId()
288
289
]
289
290
];
290
291
291
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData , 'storeId ' => 99999 ]);
292
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData , 'storeId ' => 99999 ]);
292
293
}
293
294
294
295
/**
@@ -312,7 +313,7 @@ public function testCreateThrowsExceptionIfProvidedContentIsNotBase64Encoded()
312
313
]
313
314
];
314
315
315
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
316
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
316
317
}
317
318
318
319
/**
@@ -336,7 +337,7 @@ public function testCreateThrowsExceptionIfProvidedContentIsNotAnImage()
336
337
]
337
338
];
338
339
339
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
340
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
340
341
}
341
342
342
343
/**
@@ -360,7 +361,7 @@ public function testCreateThrowsExceptionIfProvidedImageHasWrongMimeType()
360
361
]
361
362
];
362
363
363
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
364
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
364
365
}
365
366
366
367
/**
@@ -384,7 +385,7 @@ public function testCreateThrowsExceptionIfTargetProductDoesNotExist()
384
385
]
385
386
];
386
387
387
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
388
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
388
389
}
389
390
390
391
/**
@@ -407,7 +408,7 @@ public function testCreateThrowsExceptionIfProvidedImageNameContainsForbiddenCha
407
408
]
408
409
];
409
410
410
- $ this ->_webApiCall ($ this ->createServiceInfo , ['entry ' => $ requestData ]);
411
+ $ this ->_webApiCall ($ this ->createServiceInfo , ['sku ' => ' simple ' , ' entry ' => $ requestData ]);
411
412
}
412
413
413
414
/**
0 commit comments