Commit cf072529 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2889433 by pramodga, pk188, Chi: Fix incorrect plugin variable names in AddRoleUserTest

parent 5a9de193
...@@ -23,9 +23,9 @@ public function testExecuteAddExistingRole() { ...@@ -23,9 +23,9 @@ public function testExecuteAddExistingRole() {
->will($this->returnValue(TRUE)); ->will($this->returnValue(TRUE));
$config = ['rid' => 'test_role_1']; $config = ['rid' => 'test_role_1'];
$remove_role_plugin = new AddRoleUser($config, 'user_add_role_action', ['type' => 'user'], $this->userRoleEntityType); $add_role_plugin = new AddRoleUser($config, 'user_add_role_action', ['type' => 'user'], $this->userRoleEntityType);
$remove_role_plugin->execute($this->account); $add_role_plugin->execute($this->account);
} }
/** /**
...@@ -41,9 +41,9 @@ public function testExecuteAddNonExistingRole() { ...@@ -41,9 +41,9 @@ public function testExecuteAddNonExistingRole() {
->will($this->returnValue(FALSE)); ->will($this->returnValue(FALSE));
$config = ['rid' => 'test_role_1']; $config = ['rid' => 'test_role_1'];
$remove_role_plugin = new AddRoleUser($config, 'user_remove_role_action', ['type' => 'user'], $this->userRoleEntityType); $add_role_plugin = new AddRoleUser($config, 'user_add_role_action', ['type' => 'user'], $this->userRoleEntityType);
$remove_role_plugin->execute($this->account); $add_role_plugin->execute($this->account);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment