Skip to content

Commit 373b56b

Browse files
committed
magento/graphql-ce#702: [Test coverage] Customer Downloadable Products
1 parent b23231c commit 373b56b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Downloadable/CustomerDownloadableProductsTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ public function testCustomerDownloadableProducts()
5959
self::assertNotEmpty($response['customerDownloadableProducts']['items'][0]['status']);
6060
}
6161

62+
/**
63+
* @magentoApiDataFixture Magento/Customer/_files/customer.php
64+
* @magentoApiDataFixture Magento/Downloadable/_files/product_downloadable.php
65+
* @magentoApiDataFixture Magento/Downloadable/_files/customer_order_with_downloadable_product.php
66+
*
67+
* @expectedException \Exception
68+
* @expectedExceptionMessage The current customer isn't authorized.
69+
*/
70+
public function testGuestCannotAccessDownloadableProducts()
71+
{
72+
$this->graphQlQuery($this->getQuery());
73+
}
74+
6275
/**
6376
* @magentoApiDataFixture Magento/Customer/_files/customer.php
6477
*/

0 commit comments

Comments
 (0)