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 "Reset scoped session for upload jobs after deferred updates"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
TestUser.php
diff --git
a/tests/phpunit/includes/TestUser.php
b/tests/phpunit/includes/TestUser.php
index
6887ed1
..
b506cb8
100644
(file)
--- a/
tests/phpunit/includes/TestUser.php
+++ b/
tests/phpunit/includes/TestUser.php
@@
-36,7
+36,7
@@
class TestUser {
}
public function __construct( $username, $realname = 'Real Name',
}
public function __construct( $username, $realname = 'Real Name',
- $email = 'sample@example.com', $groups =
array()
+ $email = 'sample@example.com', $groups =
[]
) {
$this->assertNotReal();
) {
$this->assertNotReal();
@@
-53,10
+53,10
@@
class TestUser {
if ( !$this->user->isLoggedIn() ) {
// create the user
$this->user = User::createNew(
if ( !$this->user->isLoggedIn() ) {
// create the user
$this->user = User::createNew(
- $this->username,
array(
+ $this->username,
[
"email" => $email,
"real_name" => $realname
"email" => $email,
"real_name" => $realname
- )
+ ]
);
if ( !$this->user ) {
);
if ( !$this->user ) {
@@
-136,8
+136,8
@@
class TestUser {
$pwhash = $passwordFactory->newFromPlaintext( $password );
wfGetDB( DB_MASTER )->update(
'user',
$pwhash = $passwordFactory->newFromPlaintext( $password );
wfGetDB( DB_MASTER )->update(
'user',
-
array( 'user_password' => $pwhash->toString() )
,
-
array( 'user_id' => $user->getId() )
,
+
[ 'user_password' => $pwhash->toString() ]
,
+
[ 'user_id' => $user->getId() ]
,
__METHOD__
);
}
__METHOD__
);
}