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
Webapi
Controller
Rest
SchemaRequestProcessorTest.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Webapi\Controller\Rest
;
8
9
use
Magento\TestFramework\TestCase\AbstractController
;
10
11
class
SchemaRequestProcessorTest
extends
AbstractController
12
{
19
public
function
testSchemaRequest
(
$path
)
20
{
21
ob_start();
22
$this->
dispatch
(
$path
);
23
ob_end_clean();
24
$schema
= $this->
getResponse
()->getBody();
25
26
// Check that an HTTP 200 response status is visible in the schema.
27
$this->assertRegExp(
'/200 Success/'
,
$schema
);
28
}
29
35
public
function
getResponse
()
36
{
37
if
(!$this->_response) {
38
$this->_response = $this->_objectManager->get(\
Magento
\Framework\Webapi\
Rest
\Response::class);
39
}
40
return
$this->_response
;
41
}
42
46
public
function
schemaRequestProvider
()
47
{
48
return
[
49
[
'rest/schema'
],
50
[
'rest/schema?services=all'
],
51
[
'rest/all/schema?services=all'
],
52
[
'rest/default/schema?services=all'
],
53
[
'rest/schema?services=all'
],
54
];
55
}
56
}
Magento\Webapi\Controller\Rest\SchemaRequestProcessorTest\schemaRequestProvider
schemaRequestProvider()
Definition:
SchemaRequestProcessorTest.php:46
Magento\Webapi\Controller\Rest\SchemaRequestProcessorTest
Definition:
SchemaRequestProcessorTest.php:11
Magento\Webapi\Controller\Rest\SchemaRequestProcessorTest\testSchemaRequest
testSchemaRequest($path)
Definition:
SchemaRequestProcessorTest.php:19
Magento\TestFramework\TestCase\AbstractController
Definition:
AbstractController.php:24
Magento\Webapi\Controller\Rest\SchemaRequestProcessorTest\getResponse
getResponse()
Definition:
SchemaRequestProcessorTest.php:35
Magento\TestFramework\TestCase\AbstractController\$_response
$_response
Definition:
AbstractController.php:40
Magento
Magento\Webapi\Controller\Rest
Definition:
Rest.php:31
Magento\Webapi\Controller\Rest
Definition:
SchemaRequestProcessorTest.php:7
$schema
$schema
Definition:
configured_price.phtml:9
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\Webapi\Controller\Rest\dispatch
dispatch(\Magento\Framework\App\RequestInterface $request)
Definition:
Rest.php:180