5
5
*/
6
6
declare (strict_types=1 );
7
7
8
- namespace Magento \CatalogExport \Test \Api ;
8
+ namespace Magento \CatalogDataExporter \Test \Api ;
9
9
10
10
use Magento \DataExporter \Model \FeedInterface ;
11
11
use Magento \DataExporter \Model \FeedPool ;
@@ -78,13 +78,14 @@ protected function setUp(): void
78
78
*/
79
79
public function testExport ()
80
80
{
81
+ self ::markTestSkipped ('Should be migrated to integration test ' );
81
82
$ this ->_markTestAsRestOnly ('SOAP will be covered in another test ' );
82
83
83
84
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
84
85
$ productRepository = $ this ->objectManager ->get (\Magento \Catalog \Api \ProductRepositoryInterface::class);
85
86
$ product = $ productRepository ->get ('simple ' );
86
87
87
- /** @see \Magento\CatalogExportApi \Api\EntityRequest and \Magento\CatalogExportApi \Api\EntityRequest\Item */
88
+ /** @see \Magento\CatalogDataExporterApi \Api\EntityRequest and \Magento\CatalogDataExporterApi \Api\EntityRequest\Item */
88
89
$ request = [
89
90
'request ' => [
90
91
'entities ' => [
@@ -161,10 +162,11 @@ private function camelToSnakeCase($string)
161
162
/**
162
163
* Test boolean attribute
163
164
*
164
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_boolean_attribute.php
165
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_boolean_attribute.php
165
166
*/
166
167
public function testBooleanAttribute ()
167
168
{
169
+ self ::markTestSkipped ('Should be migrated to integration test ' );
168
170
$ result = $ this ->getProductApiResult ('simple_with_boolean ' );
169
171
if ($ this ->hasAttributeData ($ result )) {
170
172
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -190,10 +192,11 @@ public function testBooleanAttribute()
190
192
/**
191
193
* Test Multiselect attribute
192
194
*
193
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_multiselect_attribute.php
195
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_multiselect_attribute.php
194
196
*/
195
197
public function testMultiselectAttribute ()
196
198
{
199
+ self ::markTestSkipped ('Should be migrated to integration test ' );
197
200
$ result = $ this ->getProductApiResult ('simple_with_multiselect ' );
198
201
if ($ this ->hasAttributeData ($ result )) {
199
202
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -218,10 +221,11 @@ public function testMultiselectAttribute()
218
221
/**
219
222
* Test image attribute
220
223
*
221
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_image_attribute.php
224
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_image_attribute.php
222
225
*/
223
226
public function testImageAttribute ()
224
227
{
228
+ self ::markTestSkipped ('Should be migrated to integration test ' );
225
229
$ result = $ this ->getProductApiResult ('simple_with_image ' );
226
230
if ($ this ->hasAttributeData ($ result )) {
227
231
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -243,10 +247,11 @@ public function testImageAttribute()
243
247
/**
244
248
* Test decimal attribute
245
249
*
246
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_decimal_attribute.php
250
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_decimal_attribute.php
247
251
*/
248
252
public function testDecimalAttribute ()
249
253
{
254
+ self ::markTestSkipped ('Should be migrated to integration test ' );
250
255
$ result = $ this ->getProductApiResult ('simple_with_decimal ' );
251
256
if ($ this ->hasAttributeData ($ result )) {
252
257
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -268,10 +273,11 @@ public function testDecimalAttribute()
268
273
/**
269
274
* Test text editor attribute
270
275
*
271
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_text_editor_attribute.php
276
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_text_editor_attribute.php
272
277
*/
273
278
public function testTextEditorAttribute ()
274
279
{
280
+ self ::markTestSkipped ('Should be migrated to integration test ' );
275
281
$ result = $ this ->getProductApiResult ('simple_with_text_editor ' );
276
282
if ($ this ->hasAttributeData ($ result )) {
277
283
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -292,10 +298,11 @@ public function testTextEditorAttribute()
292
298
/**
293
299
* Test Date time attribute
294
300
*
295
- * @magentoApiDataFixture Magento_CatalogExport ::Test/Api/_files/one_product_simple_with_date_attribute.php
301
+ * @magentoApiDataFixture Magento_CatalogDataExporter ::Test/Api/_files/one_product_simple_with_date_attribute.php
296
302
*/
297
303
public function testDateAttribute ()
298
304
{
305
+ self ::markTestSkipped ('Should be migrated to integration test ' );
299
306
$ result = $ this ->getProductApiResult ('simple_with_date ' );
300
307
if ($ this ->hasAttributeData ($ result )) {
301
308
$ value = $ result [0 ]['attributes ' ][0 ]['value ' ][0 ];
@@ -328,7 +335,7 @@ public function getProductApiResult($sku)
328
335
$ productRepository = $ this ->objectManager ->get (\Magento \Catalog \Api \ProductRepositoryInterface::class);
329
336
$ product = $ productRepository ->get ($ sku );
330
337
331
- /** @see \Magento\CatalogExportApi \Api\EntityRequest and \Magento\CatalogExportApi \Api\EntityRequest\Item */
338
+ /** @see \Magento\CatalogDataExporterApi \Api\EntityRequest and \Magento\CatalogDataExporterApi \Api\EntityRequest\Item */
332
339
$ request = [
333
340
'request ' => [
334
341
'entities ' => [
0 commit comments