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()
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
+
92
93
}
93
94
94
95
/**
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 ;
14
15
use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
15
16
use Magento \GraphQl \GetCustomerAuthenticationHeader ;
16
17
use Magento \Sales \Api \OrderRepositoryInterface ;
@@ -508,7 +509,7 @@ public function testGetCustomerDescendingSortedOrders()
508
509
for ($ i = 1 ; $ i <= 3 ; $ i ++) {
509
510
$ orderNumber = $ this ->fixtures ->get ('or ' . $ i )->getIncrementId ();
510
511
$ orderCreatedAt = $ this ->timezone ->date ($ this ->fixtures ->get ('or ' . $ i )->getCreatedAt ())
511
- ->format (' d/m/Y H:i:s ' );
512
+ ->format (DateTime:: DATETIME_PHP_FORMAT );
512
513
$ orderNumberCreatedAtExpected [$ orderNumber ] = $ orderCreatedAt ;
513
514
}
514
515
You can’t perform that action at this time.
0 commit comments