aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/PreferencesTest.php
diff options
context:
space:
mode:
authorKrzysztof Zbudniewek <krzysztof.zbudniewek@gmail.com>2015-12-13 01:56:47 +0100
committerKrzysztof Zbudniewek <krzysztof.zbudniewek@gmail.com>2015-12-14 18:50:07 +0100
commit28c98539cd0fd4a1cf5e9ce7662b7a360fb64dbb (patch)
tree45d22d4a5de71698e4122385967ddd40cae274d6 /tests/phpunit/includes/PreferencesTest.php
parent2acd6fb2234146d8533d3529c93d56f03af45bab (diff)
downloadmediawikicore-28c98539cd0fd4a1cf5e9ce7662b7a360fb64dbb.tar.gz
mediawikicore-28c98539cd0fd4a1cf5e9ce7662b7a360fb64dbb.zip
Special:Preferences Remove red box in email and changed confirm error to warning
As @matmarex suggested I used the same colors for warning as in shared.css for .warningbox Bug: T58611 Change-Id: Icba7787db4cc77ee793b9637c60b5977d28dc8cf
Diffstat (limited to 'tests/phpunit/includes/PreferencesTest.php')
-rw-r--r--tests/phpunit/includes/PreferencesTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/phpunit/includes/PreferencesTest.php b/tests/phpunit/includes/PreferencesTest.php
index 5841bb6f07ff..fe431b667335 100644
--- a/tests/phpunit/includes/PreferencesTest.php
+++ b/tests/phpunit/includes/PreferencesTest.php
@@ -45,36 +45,36 @@ class PreferencesTest extends MediaWikiTestCase {
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserHasNoEmail() {
+ public function testEmailAuthenticationFieldWhenUserHasNoEmail() {
$prefs = $this->prefsFor( 'noemail' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emailaddress']
+ $prefs['emailauthentication']
);
- $this->assertEquals( 'mw-email-none', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-none', $prefs['emailauthentication']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserEmailNotAuthenticated() {
+ public function testEmailAuthenticationFieldWhenUserEmailNotAuthenticated() {
$prefs = $this->prefsFor( 'notauth' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emailaddress']
+ $prefs['emailauthentication']
);
- $this->assertEquals( 'mw-email-not-authenticated', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-not-authenticated', $prefs['emailauthentication']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserEmailIsAuthenticated() {
+ public function testEmailAuthenticationFieldWhenUserEmailIsAuthenticated() {
$prefs = $this->prefsFor( 'auth' );
$this->assertArrayHasKey( 'cssclass',
- $prefs['emailaddress']
+ $prefs['emailauthentication']
);
- $this->assertEquals( 'mw-email-authenticated', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-authenticated', $prefs['emailauthentication']['cssclass'] );
}
/** Helper */