Skip to content

Commit c9873f4

Browse files
committed
magento-engcom/bulk-api#4 Support for Async operations in WebAPI
- Fixed integration tests
1 parent c5f5dac commit c9873f4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

dev/tests/api-functional/testsuite/Magento/Webapi/JsonGenerationFromDataObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testSingleServiceRetrieval()
7878

7979
/**
8080
* @expectedException \Exception
81-
* @expectedExceptionMessage Request does not match any route.
81+
* @expectedExceptionMessage Specified request cannot be processed.
8282
*/
8383
public function testInvalidRestUrlNoServices()
8484
{

dev/tests/api-functional/testsuite/Magento/WebapiAsync/Model/BulkScheduleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ protected function setUp()
106106
*/
107107
public function testAsyncScheduleBulk($product)
108108
{
109+
$this->_markTestAsRestOnly();
109110
$response = $this->saveProductAsync($product);
110111
$this->assertArrayHasKey(self::BULK_UUID_KEY, $response);
111112
$this->assertNotNull($response[self::BULK_UUID_KEY]);
@@ -186,6 +187,7 @@ private function clearProducts()
186187
*/
187188
public function testGetProductAsync($sku, $storeCode = null)
188189
{
190+
$this->_markTestAsRestOnly();
189191
$serviceInfo = [
190192
'rest' => [
191193
'resourcePath' => self::ASYNC_RESOURCE_PATH . '/' . $sku,

dev/tests/integration/testsuite/Magento/Webapi/Controller/Rest/SchemaRequestProcessorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testSchemaRequest($path)
2222
$schema = $this->getResponse()->getBody();
2323

2424
// Check that an HTTP 200 response status is visible in the schema.
25-
$this->assertRegExp('/200 Accepted/', $schema);
25+
$this->assertRegExp('/200 Success/', $schema);
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)