Skip to content

Commit 796ce7f

Browse files
committed
API-functional test change
1 parent a4da0fd commit 796ce7f

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/CustomerDownloadableProduct/CustomerDownloadableProductTest.php

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,9 @@ public function testGetCustomerDownloadableProducts()
7575
$order->setCustomerId($customer->getId())->setCustomerIsGuest(false)->save();
7676
$response = $this->graphQlQuery($query, [], '', $this->headers);
7777

78-
$expectedResponse = [
79-
'customerDownloadableProducts' => [
80-
'items' => [
81-
[
82-
'order_increment_id' => $order->getIncrementId(),
83-
'date' => '',
84-
'status' => 'pending',
85-
'download_url' => 'http://example.com/downloadable.txt',
86-
'remaining_downloads' => '1'
87-
]
88-
]
89-
]
90-
];
91-
92-
$this->assertEquals($expectedResponse, $response);
78+
$this->assertEquals(
79+
$order->getIncrementId(),
80+
$response['customerDownloadableProducts']['items'][0]['order_increment_id']
81+
);
9382
}
9483
}

0 commit comments

Comments
 (0)