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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-swagger-webapi-async
Test
Unit
Model
SchemaType
AsyncTest.php
Go to the documentation of this file.
1
<?php
7
declare(strict_types=1);
8
9
namespace
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType
;
10
11
use
Magento\Swagger\Api\Data\SchemaTypeInterface
;
12
use
Magento\SwaggerWebapiAsync\Model\SchemaType\Async
;
13
14
class
AsyncTest
extends
\PHPUnit\Framework\TestCase
15
{
19
private
$async;
20
24
protected
function
setUp
()
25
{
26
$this->async =
new
Async
(
'async'
);
27
}
28
32
public
function
testGetCode
()
33
{
34
$this->assertEquals(
'async'
, $this->async->getCode());
35
}
36
45
public
function
testGetSchemaUrlPath
($expected,
$store
=
null
)
46
{
47
$this->assertEquals($expected, $this->async->getSchemaUrlPath(
$store
));
48
}
49
53
public
function
getSchemaUrlPathProvider
()
54
{
55
return
[
56
[
57
'/rest/all/async/schema?services=all'
,
58
null
59
],
60
[
61
'/rest/test/async/schema?services=all'
,
62
'test'
63
]
64
];
65
}
66
}
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType\AsyncTest
Definition:
AsyncTest.php:14
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType\AsyncTest\testGetSchemaUrlPath
testGetSchemaUrlPath($expected, $store=null)
Definition:
AsyncTest.php:45
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType\AsyncTest\setUp
setUp()
Definition:
AsyncTest.php:24
Magento\SwaggerWebapiAsync\Model\SchemaType\Async
Definition:
Async.php:16
Magento\Swagger\Api\Data\SchemaTypeInterface
Definition:
SchemaTypeInterface.php:19
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType
Definition:
AsyncTest.php:9
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType\AsyncTest\testGetCode
testGetCode()
Definition:
AsyncTest.php:32
$store
$store
Definition:
payment_configuration_rollback.php:33
Magento\SwaggerWebapiAsync\Test\Unit\Model\SchemaType\AsyncTest\getSchemaUrlPathProvider
getSchemaUrlPathProvider()
Definition:
AsyncTest.php:53