1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Directory\Block;
use Magento\TestFramework\Helper\CacheCleaner;
class DataTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Magento\Directory\Block\Data
*/
private $block;
protected function setUp()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$this->block = $objectManager->get(\Magento\Directory\Block\Data::class);
}
public function testGetCountryHtmlSelect()
{
CacheCleaner::cleanAll();
$result = $this->block->getCountryHtmlSelect();
$resultTwo = $this->block->getCountryHtmlSelect();
$this->assertEquals($result, $resultTwo);
}
public function testGetRegionHtmlSelect()
{
CacheCleaner::cleanAll();
$result = $this->block->getRegionHtmlSelect();
$resultTwo = $this->block->getRegionHtmlSelect();
$this->assertEquals($result, $resultTwo);
}
}