diff --git a/app/code/Magento/Backend/Controller/Adminhtml/Denied/Index.php b/app/code/Magento/Backend/Controller/Adminhtml/Denied/Index.php
new file mode 100644
index 0000000000000..c06c0a0f01650
--- /dev/null
+++ b/app/code/Magento/Backend/Controller/Adminhtml/Denied/Index.php
@@ -0,0 +1,27 @@
+setHasAvailableResources(false);
}
- $action = '*/*/denied';
+ $action = '*/denied';
}
return $action;
}
diff --git a/app/code/Magento/Backend/Test/Mftf/Test/AdminLoginWithRestrictPermissionTest.xml b/app/code/Magento/Backend/Test/Mftf/Test/AdminLoginWithRestrictPermissionTest.xml
new file mode 100644
index 0000000000000..e664a4a5f3e2f
--- /dev/null
+++ b/app/code/Magento/Backend/Test/Mftf/Test/AdminLoginWithRestrictPermissionTest.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/Backend/Test/Unit/Model/UrlTest.php b/app/code/Magento/Backend/Test/Unit/Model/UrlTest.php
index ad42108cb5eea..1ef3b3980441e 100644
--- a/app/code/Magento/Backend/Test/Unit/Model/UrlTest.php
+++ b/app/code/Magento/Backend/Test/Unit/Model/UrlTest.php
@@ -190,7 +190,7 @@ public function testFindFirstAvailableMenuDenied()
$this->_menuMock->expects($this->any())->method('getFirstAvailableChild')->will($this->returnValue(null));
- $this->assertEquals('*/*/denied', $this->_model->findFirstAvailableMenu());
+ $this->assertEquals('*/denied', $this->_model->findFirstAvailableMenu());
}
public function testFindFirstAvailableMenu()
diff --git a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserClickRoleResourceTabActionGroup.xml b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserClickRoleResourceTabActionGroup.xml
new file mode 100644
index 0000000000000..3e20eaf973674
--- /dev/null
+++ b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserClickRoleResourceTabActionGroup.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ Switch to role resource tab.
+
+
+
+
diff --git a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserOpenAdminRolesPageActionGroup.xml b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserOpenAdminRolesPageActionGroup.xml
new file mode 100644
index 0000000000000..71be9117e5caf
--- /dev/null
+++ b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserOpenAdminRolesPageActionGroup.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ Navigate to User Role Grid
+
+
+
+
+
diff --git a/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserSaveRoleActionGroup.xml b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserSaveRoleActionGroup.xml
new file mode 100644
index 0000000000000..824e9407125f5
--- /dev/null
+++ b/app/code/Magento/User/Test/Mftf/ActionGroup/AdminUserSaveRoleActionGroup.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ Click to Save Role
+
+
+
+
+