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-offline-payments
Test
Unit
Model
CashondeliveryTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\OfflinePayments\Test\Unit\Model
;
7
8
class
CashondeliveryTest
extends
\PHPUnit\Framework\TestCase
9
{
13
protected
$_object
;
14
18
protected
$_scopeConfig
;
19
20
protected
function
setUp
()
21
{
22
$helper
= new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
23
24
$eventManager = $this->createMock(\
Magento
\Framework\Event\ManagerInterface::class);
25
$paymentDataMock = $this->createMock(\
Magento
\
Payment
\Helper\Data::class);
26
27
$this->_scopeConfig = $this->createMock(\
Magento
\Framework\
App
\
Config
\ScopeConfigInterface::class);
28
$this->_object =
$helper
->getObject(
29
\
Magento
\OfflinePayments\Model\Cashondelivery::class,
30
[
31
'eventManager'
=> $eventManager,
32
'paymentData'
=> $paymentDataMock,
33
'scopeConfig'
=> $this->_scopeConfig,
34
]
35
);
36
}
37
38
public
function
testGetInfoBlockType
()
39
{
40
$this->assertEquals(\
Magento
\
Payment
\Block\
Info
\Instructions::class, $this->_object->getInfoBlockType());
41
}
42
}
Magento\Framework\App
Magento\OfflinePayments\Test\Unit\Model\CashondeliveryTest\$_scopeConfig
$_scopeConfig
Definition:
CashondeliveryTest.php:18
$helper
$helper
Definition:
iframe.phtml:13
Magento\OfflinePayments\Test\Unit\Model\CashondeliveryTest\testGetInfoBlockType
testGetInfoBlockType()
Definition:
CashondeliveryTest.php:38
Magento\Sales\Model\Order\Payment\Info
Definition:
Info.php:19
Magento\OfflinePayments\Test\Unit\Model
Definition:
BanktransferTest.php:6
Magento\OfflinePayments\Test\Unit\Model\CashondeliveryTest
Definition:
CashondeliveryTest.php:8
Magento\OfflinePayments\Test\Unit\Model\CashondeliveryTest\setUp
setUp()
Definition:
CashondeliveryTest.php:20
Magento
Magento\Sales\Model\Order\Payment
Definition:
Payment.php:28
Magento\Sales\Model\Order\Invoice\Config
Definition:
Config.php:14
Magento\OfflinePayments\Test\Unit\Model\CashondeliveryTest\$_object
$_object
Definition:
CashondeliveryTest.php:13