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
module-webapi
Test
Unit
Model
Soap
WsdlFactoryTest.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Webapi\Test\Unit\Model\Soap
;
9
10
class
WsdlFactoryTest
extends
\PHPUnit\Framework\TestCase
11
{
13
protected
$_objectManagerMock
;
14
16
protected
$_soapWsdlFactory
;
17
18
protected
function
setUp
()
19
{
20
$this->_objectManagerMock = $this->createMock(\
Magento
\Framework\ObjectManagerInterface::class);
21
$this->_soapWsdlFactory = new \Magento\Webapi\Model\Soap\WsdlFactory($this->_objectManagerMock);
22
parent::setUp();
23
}
24
25
protected
function
tearDown
()
26
{
27
unset($this->_objectManagerMock);
28
unset($this->_soapWsdlFactory);
29
parent::tearDown();
30
}
31
32
public
function
testCreate
()
33
{
34
$wsdlName =
'wsdlName'
;
35
$endpointUrl =
'endpointUrl'
;
36
$this->_objectManagerMock->expects(
37
$this->once()
38
)->method(
39
'create'
40
)->with(
41
\
Magento
\
Webapi
\Model\Soap\Wsdl::class,
42
[
'name'
=> $wsdlName,
'uri'
=> $endpointUrl]
43
);
44
$this->_soapWsdlFactory->create($wsdlName, $endpointUrl);
45
}
46
}
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest\testCreate
testCreate()
Definition:
WsdlFactoryTest.php:32
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest\$_objectManagerMock
$_objectManagerMock
Definition:
WsdlFactoryTest.php:13
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest\setUp
setUp()
Definition:
WsdlFactoryTest.php:18
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest\$_soapWsdlFactory
$_soapWsdlFactory
Definition:
WsdlFactoryTest.php:16
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest\tearDown
tearDown()
Definition:
WsdlFactoryTest.php:25
Magento
Magento\Webapi\Test\Unit\Model\Soap
Definition:
FaultTest.php:6
Magento\Webapi\Model\Cache\Type\Webapi
Definition:
Webapi.php:14
Magento\Webapi\Test\Unit\Model\Soap\WsdlFactoryTest
Definition:
WsdlFactoryTest.php:10