Example #1
0
 /**
  * @magentoDataFixture Magento/Customer/_files/customer.php
  */
 public function testGetStoreCreateDate()
 {
     $customer = $this->_loadCustomer();
     $date = $this->_context->getLocaleDate()->scopeDate($customer->getStoreId(), $this->_dateTime->toTimestamp($customer->getCreatedAt()), true);
     $storeCreateDate = $this->_block->formatDate($date, \Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM, true);
     $this->assertEquals($storeCreateDate, $this->_block->getStoreCreateDate());
 }