Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BmlPositionTest.php
Go to the documentation of this file.
1 <?php
7 
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 }
__()
Definition: __.php:13