Example #1
0
 /**
  * @magentoDataFixture Magento/Customer/_files/customer.php
  */
 public function testGetStoreCreateDateTimezone()
 {
     /**
      * @var \Magento\Framework\Stdlib\DateTime\TimezoneInterface $defaultTimeZonePath
      */
     $defaultTimeZonePath = $this->_objectManager->get('Magento\\Framework\\Stdlib\\DateTime\\TimezoneInterface')->getDefaultTimezonePath();
     $timezone = $this->_context->getScopeConfig()->getValue($defaultTimeZonePath, \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $this->_loadCustomer()->getStoreId());
     $this->assertEquals($timezone, $this->_block->getStoreCreateDateTimezone());
 }