projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgraded drupal core with security updates
[yaffs-website]
/
web
/
core
/
modules
/
user
/
tests
/
src
/
Unit
/
Plugin
/
Action
/
AddRoleUserTest.php
diff --git
a/web/core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
b/web/core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
index 5ca694b84efdb5e0330014aad6a42df81b2ca207..1f460517dabb3c846751be89159163b4634d0769 100644
(file)
--- a/
web/core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
+++ b/
web/core/modules/user/tests/src/Unit/Plugin/Action/AddRoleUserTest.php
@@
-23,9
+23,9
@@
class AddRoleUserTest extends RoleUserTestBase {
->will($this->returnValue(TRUE));
$config = ['rid' => 'test_role_1'];
->will($this->returnValue(TRUE));
$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
@@
class AddRoleUserTest extends RoleUserTestBase {
->will($this->returnValue(FALSE));
$config = ['rid' => 'test_role_1'];
->will($this->returnValue(FALSE));
$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);
}
}
}
}