Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SummaryTest.php
Go to the documentation of this file.
1 <?php
7 
8 use \Magento\Checkout\Model\Config\Source\Cart\Summary;
9 
10 class SummaryTest extends \PHPUnit\Framework\TestCase
11 {
15  private $model;
16 
17  protected function setUp()
18  {
19  $this->model = new Summary();
20  }
21 
22  public function testToOptionArray()
23  {
24  $expectedResult = [
25  ['value' => 0, 'label' => __('Display number of items in cart')],
26  ['value' => 1, 'label' => __('Display item quantities')],
27  ];
28  $this->assertEquals($expectedResult, $this->model->toOptionArray());
29  }
30 }
__()
Definition: __.php:13