Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
integration
testsuite
Magento
WebapiAsync
Controller
Rest
AsynchronousSchemaRequestProcessorTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\WebapiAsync\Controller\Rest
;
8
9
use
Magento\TestFramework\TestCase\AbstractController
;
10
11
class
AsynchronousSchemaRequestProcessorTest
extends
AbstractController
12
{
20
public
function
testSchemaRequest
(
$path
)
21
{
22
ob_start();
23
$this->dispatch(
$path
);
24
ob_end_clean();
25
$schema
= $this->
getResponse
()->getBody();
26
27
// Check that an HTTP 202 response is visible for what is normally an HTTP 200.
28
$this->assertRegExp(
'/202 Accepted/'
,
$schema
);
29
30
// Make sure that the async interface definition is included in the response.
31
$this->assertRegExp(
'/asynchronous-operations-data-async-response-interface/'
,
$schema
);
32
}
33
39
public
function
getResponse
()
40
{
41
if
(!$this->_response) {
42
$this->_response = $this->_objectManager->get(\
Magento
\Framework\Webapi\Rest\Response::class);
43
}
44
return
$this->_response
;
45
}
46
50
public
function
schemaRequestProvider
()
51
{
52
return
[
53
[
'rest/async/schema'
],
54
[
'rest/async/schema?services=all'
],
55
[
'rest/all/async/schema?services=all'
],
56
[
'rest/default/async/schema?services=all'
],
57
[
'rest/async/schema?services=all'
],
58
];
59
}
60
}
Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessorTest
Definition:
AsynchronousSchemaRequestProcessorTest.php:11
Magento\WebapiAsync\Controller\Rest
Definition:
AsynchronousSchemaRequestProcessorMock.php:7
Magento\TestFramework\TestCase\AbstractController
Definition:
AbstractController.php:24
Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessorTest\schemaRequestProvider
schemaRequestProvider()
Definition:
AsynchronousSchemaRequestProcessorTest.php:50
Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessorTest\getResponse
getResponse()
Definition:
AsynchronousSchemaRequestProcessorTest.php:39
Magento\TestFramework\TestCase\AbstractController\$_response
$_response
Definition:
AbstractController.php:40
Magento
$schema
$schema
Definition:
configured_price.phtml:9
Magento\WebapiAsync\Controller\Rest\AsynchronousSchemaRequestProcessorTest\testSchemaRequest
testSchemaRequest($path)
Definition:
AsynchronousSchemaRequestProcessorTest.php:20
$path
$path
Definition:
import_with_filesystem_images.php:14