public function testFormatDate() { $locale = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\\Framework\\Stdlib\\DateTime\\TimezoneInterface'); $this->assertEquals($locale->formatDate(), $this->_block->formatDate()); }