dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused method Title::validateFileMoveOperation()
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
TestUserRegistry.php
diff --git
a/tests/phpunit/includes/TestUserRegistry.php
b/tests/phpunit/includes/TestUserRegistry.php
index
24aee24
..
3064a3d
100644
(file)
--- a/
tests/phpunit/includes/TestUserRegistry.php
+++ b/
tests/phpunit/includes/TestUserRegistry.php
@@
-28,7
+28,7
@@
class TestUserRegistry {
*
* @param string $testName Caller's __CLASS__. Used to generate the
* user's username.
*
* @param string $testName Caller's __CLASS__. Used to generate the
* user's username.
- * @param string[] $groups Groups the test user should be added to.
+ * @param string
|string
[] $groups Groups the test user should be added to.
* @return TestUser
*/
public static function getMutableTestUser( $testName, $groups = [] ) {
* @return TestUser
*/
public static function getMutableTestUser( $testName, $groups = [] ) {
@@
-38,7
+38,7
@@
class TestUserRegistry {
"TestUser $testName $id", // username
"Name $id", // real name
"$id@mediawiki.test", // e-mail
"TestUser $testName $id", // username
"Name $id", // real name
"$id@mediawiki.test", // e-mail
-
$groups,
// groups
+
(array)$groups,
// groups
$password // password
);
$testUser->getUser()->clearInstanceCache();
$password // password
);
$testUser->getUser()->clearInstanceCache();
@@
-54,11
+54,11
@@
class TestUserRegistry {
*
* @since 1.28
*
*
* @since 1.28
*
- * @param string[] $groups Groups the test user should be added to.
+ * @param string
|string
[] $groups Groups the test user should be added to.
* @return TestUser
*/
public static function getImmutableTestUser( $groups = [] ) {
* @return TestUser
*/
public static function getImmutableTestUser( $groups = [] ) {
- $groups = array_unique( $groups );
+ $groups = array_unique(
(array)
$groups );
sort( $groups );
$key = implode( ',', $groups );
sort( $groups );
$key = implode( ',', $groups );