Skip to content

Commit a7db6d9

Browse files
author
Stanislav Idolov
committed
MAGETWO-59130: [Github] REST API with searchCriteria does not return category_ids #6127
1 parent 15b0842 commit a7db6d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,9 @@ public function testGetList()
722722
}
723723
}
724724
$this->assertNotNull($index, 'Category information wasn\'t set');
725-
$this->assertEquals(['2'], $response['items'][0]['custom_attributes'][$index]['value']);
725+
726+
$expectedResult = (TESTS_WEB_API_ADAPTER == self::ADAPTER_SOAP) ? ['string' => '2'] : ['2'];
727+
$this->assertEquals($expectedResult, $response['items'][0]['custom_attributes'][$index]['value']);
726728
}
727729

728730
/**

0 commit comments

Comments
 (0)