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()
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 */
You can’t perform that action at this time.
0 commit comments