File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ 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-
9392 }
9493
9594 /**
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 ;
1514use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
1615use Magento \GraphQl \GetCustomerAuthenticationHeader ;
1716use Magento \Sales \Api \OrderRepositoryInterface ;
@@ -509,7 +508,7 @@ public function testGetCustomerDescendingSortedOrders()
509508 for ($ i = 1 ; $ i <= 3 ; $ i ++) {
510509 $ orderNumber = $ this ->fixtures ->get ('or ' . $ i )->getIncrementId ();
511510 $ orderCreatedAt = $ this ->timezone ->date ($ this ->fixtures ->get ('or ' . $ i )->getCreatedAt ())
512- ->format (DateTime:: DATETIME_PHP_FORMAT );
511+ ->format (' d/m/Y H:i:s ' );
513512 $ orderNumberCreatedAtExpected [$ orderNumber ] = $ orderCreatedAt ;
514513 }
515514
You can’t perform that action at this time.
0 commit comments