File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Downloadable Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,19 @@ public function testCustomerDownloadableProducts()
59
59
self ::assertNotEmpty ($ response ['customerDownloadableProducts ' ]['items ' ][0 ]['status ' ]);
60
60
}
61
61
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
+
62
75
/**
63
76
* @magentoApiDataFixture Magento/Customer/_files/customer.php
64
77
*/
You can’t perform that action at this time.
0 commit comments