Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AssertExportProductDate.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Mtf\Constraint\AbstractConstraint;
10 
14 class AssertExportProductDate extends AbstractConstraint
15 {
23  public function processAssert(ExportInterface $export, \DateTime $dateTime)
24  {
25  $exportData = $export->getLatest();
26 
27  \PHPUnit\Framework\Assert::assertTrue(
28  (bool) strpos($exportData->getContent(), $dateTime->format('n/j/y, g')),
29  'Date fields in exported file are shown in not global configuration time zone.'
30  );
31  }
32 
38  public function toString()
39  {
40  return 'Date fields in exported file are shown in global configuration time zone.';
41  }
42 }
$dateTime