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-paypal
Test
Unit
Model
System
Config
Source
BmlPositionTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Paypal\Test\Unit\Model\System\Config\Source
;
7
8
use
Magento\Paypal\Model\System\Config\Source\BmlPosition
;
9
10
class
BmlPositionTest
extends
\PHPUnit\Framework\TestCase
11
{
13
protected
$model
;
14
15
protected
function
setUp
()
16
{
17
$this->model =
new
BmlPosition
();
18
}
19
20
public
function
testGetBmlPositionsHP
()
21
{
22
$expectedResult = [
23
'0'
=>
__
(
'Header (center)'
),
24
'1'
=>
__
(
'Sidebar (right)'
)
25
];
26
$this->assertEquals($expectedResult, $this->model->getBmlPositionsHP());
27
}
28
29
public
function
testGetBmlPositionsCCP
()
30
{
31
$expectedResult = [
32
'0'
=>
__
(
'Header (center)'
),
33
'1'
=>
__
(
'Sidebar (right)'
)
34
];
35
$this->assertEquals($expectedResult, $this->model->getBmlPositionsCCP());
36
}
37
38
public
function
testGetBmlPositionsCPP
()
39
{
40
$expectedResult = [
41
'0'
=>
__
(
'Header (center)'
),
42
'1'
=>
__
(
'Near PayPal Credit checkout button'
)
43
];
44
$this->assertEquals($expectedResult, $this->model->getBmlPositionsCPP());
45
}
46
47
public
function
testGetBmlPositionsCheckout
()
48
{
49
$expectedResult = [
50
'0'
=>
__
(
'Header (center)'
),
51
'1'
=>
__
(
'Near PayPal Credit checkout button'
)
52
];
53
$this->assertEquals($expectedResult, $this->model->getBmlPositionsCheckout());
54
}
55
}
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest
Definition:
BmlPositionTest.php:10
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\testGetBmlPositionsHP
testGetBmlPositionsHP()
Definition:
BmlPositionTest.php:20
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\$model
$model
Definition:
BmlPositionTest.php:13
__
__()
Definition:
__.php:13
Magento\Paypal\Model\System\Config\Source\BmlPosition
Definition:
BmlPosition.php:9
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\testGetBmlPositionsCPP
testGetBmlPositionsCPP()
Definition:
BmlPositionTest.php:38
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\testGetBmlPositionsCCP
testGetBmlPositionsCCP()
Definition:
BmlPositionTest.php:29
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\setUp
setUp()
Definition:
BmlPositionTest.php:15
Magento\Paypal\Test\Unit\Model\System\Config\Source
Definition:
BmlPositionTest.php:6
Magento\Paypal\Test\Unit\Model\System\Config\Source\BmlPositionTest\testGetBmlPositionsCheckout
testGetBmlPositionsCheckout()
Definition:
BmlPositionTest.php:47