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()
89
89
$ date = \DateTime::createFromFormat ($ expectedFormat , $ dateString );
90
90
$ isValid = $ date && $ date ->format ($ expectedFormat ) === $ dateString ;
91
91
$ this ->assertTrue ($ isValid , "Date format is not valid: $ dateString " );
92
-
93
92
}
94
93
95
94
/**
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Api \SearchCriteriaBuilder ;
12
12
use Magento \Framework \Exception \AuthenticationException ;
13
13
use Magento \Framework \Registry ;
14
- use Magento \Framework \Stdlib \DateTime ;
15
14
use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
16
15
use Magento \GraphQl \GetCustomerAuthenticationHeader ;
17
16
use Magento \Sales \Api \OrderRepositoryInterface ;
@@ -509,7 +508,7 @@ public function testGetCustomerDescendingSortedOrders()
509
508
for ($ i = 1 ; $ i <= 3 ; $ i ++) {
510
509
$ orderNumber = $ this ->fixtures ->get ('or ' . $ i )->getIncrementId ();
511
510
$ orderCreatedAt = $ this ->timezone ->date ($ this ->fixtures ->get ('or ' . $ i )->getCreatedAt ())
512
- ->format (DateTime:: DATETIME_PHP_FORMAT );
511
+ ->format (' d/m/Y H:i:s ' );
513
512
$ orderNumberCreatedAtExpected [$ orderNumber ] = $ orderCreatedAt ;
514
513
}
515
514
You can’t perform that action at this time.
0 commit comments