File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
app/code/Magento/Analytics/Controller/Adminhtml/Reports
dev/tests/integration/testsuite/Magento/Analytics/Controller/Adminhtml/Reports Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Show extends Action implements HttpGetActionInterface
27
27
/**
28
28
* @inheritdoc
29
29
*/
30
- const ADMIN_RESOURCE = 'Magento_Analytics::analytics_settings ' ;
30
+ const ADMIN_RESOURCE = 'Magento_Analytics::advanced_reporting ' ;
31
31
32
32
/**
33
33
* @param Context $context
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Analytics \Controller \Adminhtml \Reports ;
9
+
10
+ use Magento \TestFramework \TestCase \AbstractBackendController ;
11
+
12
+ /**
13
+ * @magentoAppArea adminhtml
14
+ */
15
+ class ShowTest extends AbstractBackendController
16
+ {
17
+ private const REPORT_HOST = 'advancedreporting.rjmetrics.com ' ;
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ protected $ resource = 'Magento_Analytics::advanced_reporting ' ;
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ protected $ uri = 'backend/analytics/reports/show ' ;
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ public function testAclHasAccess ()
30
+ {
31
+ parent ::testAclHasAccess ();
32
+ $ this ->assertSame (302 , $ this ->getResponse ()->getHttpResponseCode ());
33
+ $ this ->assertSame (self ::REPORT_HOST , $ this ->getResponse ()->getHeader ('location ' )->uri ()->getHost ());
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments