init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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(): void
|
||||
{
|
||||
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
$this->block = $objectManager->get(\Magento\Directory\Block\Data::class);
|
||||
}
|
||||
|
||||
public function testGetCountryHtmlSelect()
|
||||
{
|
||||
$result = $this->block->getCountryHtmlSelect();
|
||||
$resultTwo = $this->block->getCountryHtmlSelect();
|
||||
$this->assertEquals($result, $resultTwo);
|
||||
}
|
||||
|
||||
public function testGetRegionHtmlSelect()
|
||||
{
|
||||
$result = $this->block->getRegionHtmlSelect();
|
||||
$resultTwo = $this->block->getRegionHtmlSelect();
|
||||
$this->assertEquals($result, $resultTwo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user