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
Merge "resourceloader: Make cache-eval in mw.loader.work asynchronous"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
UserWrapper.php
diff --git
a/tests/phpunit/includes/api/UserWrapper.php
b/tests/phpunit/includes/api/UserWrapper.php
index
f8da0ff
..
9942a0f
100644
(file)
--- a/
tests/phpunit/includes/api/UserWrapper.php
+++ b/
tests/phpunit/includes/api/UserWrapper.php
@@
-10,12
+10,12
@@
class UserWrapper {
$this->password = $password;
$this->user = User::newFromName( $this->userName );
$this->password = $password;
$this->user = User::newFromName( $this->userName );
- if ( !$this->user->getI
D
() ) {
- $this->user = User::createNew( $this->userName,
array(
+ if ( !$this->user->getI
d
() ) {
+ $this->user = User::createNew( $this->userName,
[
"email" => "test@example.com",
"email" => "test@example.com",
- "real_name" => "Test User"
)
);
+ "real_name" => "Test User"
]
);
}
}
-
$this->user->setPassword(
$this->password );
+
TestUser::setPasswordForUser( $this->user,
$this->password );
if ( $group !== '' ) {
$this->user->addGroup( $group );
if ( $group !== '' ) {
$this->user->addGroup( $group );