Skip to content

Commit a003f92

Browse files
author
Yu Tang
committed
MAGETWO-27264: Add getMediaGallery
- Fix SOAP test failure
1 parent 4fff767 commit a003f92

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/ProductAttributeMediaGalleryManagementInterfaceTest.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function testCreate()
116116
]
117117
];
118118

119-
$actualResult = $this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
119+
$actualResult = $this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
120120
$targetProduct = $this->getTargetSimpleProduct();
121121
$mediaGallery = $targetProduct->getData('media_gallery');
122122

@@ -151,6 +151,7 @@ public function testCreateWithNotDefaultStoreId()
151151
$actualResult = $this->_webApiCall(
152152
$this->createServiceInfo,
153153
[
154+
'sku' => 'simple',
154155
'entry' => $requestData,
155156
'storeId' => 1,
156157
]
@@ -288,7 +289,7 @@ public function testCreateThrowsExceptionIfThereIsNoStoreWithProvidedStoreId()
288289
]
289290
];
290291

291-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData, 'storeId' => 99999]);
292+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData, 'storeId' => 99999]);
292293
}
293294

294295
/**
@@ -312,7 +313,7 @@ public function testCreateThrowsExceptionIfProvidedContentIsNotBase64Encoded()
312313
]
313314
];
314315

315-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
316+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
316317
}
317318

318319
/**
@@ -336,7 +337,7 @@ public function testCreateThrowsExceptionIfProvidedContentIsNotAnImage()
336337
]
337338
];
338339

339-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
340+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
340341
}
341342

342343
/**
@@ -360,7 +361,7 @@ public function testCreateThrowsExceptionIfProvidedImageHasWrongMimeType()
360361
]
361362
];
362363

363-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
364+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
364365
}
365366

366367
/**
@@ -384,7 +385,7 @@ public function testCreateThrowsExceptionIfTargetProductDoesNotExist()
384385
]
385386
];
386387

387-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
388+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
388389
}
389390

390391
/**
@@ -407,7 +408,7 @@ public function testCreateThrowsExceptionIfProvidedImageNameContainsForbiddenCha
407408
]
408409
];
409410

410-
$this->_webApiCall($this->createServiceInfo, ['entry' => $requestData]);
411+
$this->_webApiCall($this->createServiceInfo, ['sku' => 'simple', 'entry' => $requestData]);
411412
}
412413

413414
/**

0 commit comments

Comments
 (0)