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
Cache NS_TEMPLATE/NS_FILE titles in LinkCache persistently
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PreferencesTest.php
diff --git
a/tests/phpunit/includes/PreferencesTest.php
b/tests/phpunit/includes/PreferencesTest.php
index
3dec2da
..
289853d
100644
(file)
--- a/
tests/phpunit/includes/PreferencesTest.php
+++ b/
tests/phpunit/includes/PreferencesTest.php
@@
-35,55
+35,55
@@
class PreferencesTest extends MediaWikiTestCase {
protected function setUp() {
parent::setUp();
protected function setUp() {
parent::setUp();
- $this->setMwGlobals(
array(
+ $this->setMwGlobals(
[
'wgEnableEmail' => true,
'wgEmailAuthentication' => true,
'wgEnableEmail' => true,
'wgEmailAuthentication' => true,
-
)
);
+
]
);
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmail
Fields
WhenUserHasNoEmail() {
+ public function testEmail
AuthenticationField
WhenUserHasNoEmail() {
$prefs = $this->prefsFor( 'noemail' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'noemail' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emaila
ddress
']
+ $prefs['emaila
uthentication
']
);
);
- $this->assertEquals( 'mw-email-none', $prefs['emaila
ddress
']['cssclass'] );
+ $this->assertEquals( 'mw-email-none', $prefs['emaila
uthentication
']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmail
Fields
WhenUserEmailNotAuthenticated() {
+ public function testEmail
AuthenticationField
WhenUserEmailNotAuthenticated() {
$prefs = $this->prefsFor( 'notauth' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'notauth' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emaila
ddress
']
+ $prefs['emaila
uthentication
']
);
);
- $this->assertEquals( 'mw-email-not-authenticated', $prefs['emaila
ddress
']['cssclass'] );
+ $this->assertEquals( 'mw-email-not-authenticated', $prefs['emaila
uthentication
']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmail
Fields
WhenUserEmailIsAuthenticated() {
+ public function testEmail
AuthenticationField
WhenUserEmailIsAuthenticated() {
$prefs = $this->prefsFor( 'auth' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'auth' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emaila
ddress
']
+ $prefs['emaila
uthentication
']
);
);
- $this->assertEquals( 'mw-email-authenticated', $prefs['emaila
ddress
']['cssclass'] );
+ $this->assertEquals( 'mw-email-authenticated', $prefs['emaila
uthentication
']['cssclass'] );
}
/** Helper */
protected function prefsFor( $user_key ) {
}
/** Helper */
protected function prefsFor( $user_key ) {
- $preferences =
array()
;
+ $preferences =
[]
;
Preferences::profilePreferences(
Preferences::profilePreferences(
- $this->prefUsers[$user_key]
- , $this->context
-
,
$preferences
+ $this->prefUsers[$user_key]
,
+ $this->context,
+ $preferences
);
return $preferences;
);
return $preferences;