File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ public function testOrderDateWithInvalidCreatedAt()
8989 $ date = \DateTime::createFromFormat ($ expectedFormat , $ dateString );
9090 $ isValid = $ date && $ date ->format ($ expectedFormat ) === $ dateString ;
9191 $ this ->assertTrue ($ isValid , "Date format is not valid: $ dateString " );
92+
9293 }
9394
9495 /**
Original file line number Diff line number Diff line change 1111use Magento \Framework \Api \SearchCriteriaBuilder ;
1212use Magento \Framework \Exception \AuthenticationException ;
1313use Magento \Framework \Registry ;
14+ use Magento \Framework \Stdlib \DateTime ;
1415use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
1516use Magento \GraphQl \GetCustomerAuthenticationHeader ;
1617use Magento \Sales \Api \OrderRepositoryInterface ;
@@ -508,7 +509,7 @@ public function testGetCustomerDescendingSortedOrders()
508509 for ($ i = 1 ; $ i <= 3 ; $ i ++) {
509510 $ orderNumber = $ this ->fixtures ->get ('or ' . $ i )->getIncrementId ();
510511 $ orderCreatedAt = $ this ->timezone ->date ($ this ->fixtures ->get ('or ' . $ i )->getCreatedAt ())
511- ->format (' d/m/Y H:i:s ' );
512+ ->format (DateTime:: DATETIME_PHP_FORMAT );
512513 $ orderNumberCreatedAtExpected [$ orderNumber ] = $ orderCreatedAt ;
513514 }
514515
You can’t perform that action at this time.
0 commit comments