15 public function testConstruct()
17 $frontendCache = $this->createMock(\
Magento\Framework\Cache\FrontendInterface::class);
18 $lowLevelFrontend = $this->createMock(\Zend_Cache_Core::class);
20 $appCache = $this->createMock(\
Magento\Framework\
App\CacheInterface::class);
21 $frontendCache->expects($this->once())->method(
'getLowLevelFrontend')->willReturn($lowLevelFrontend);
22 $appCache->expects($this->once())
23 ->method(
'getFrontend')
24 ->willReturn($frontendCache);
27 $currency =
new Currency($appCache,
null,
'en_US');
28 $this->assertEquals($lowLevelFrontend, $currency->getCache());
29 $this->assertEquals(
'USD', $currency->getShortName());