}
/**
- * Placeholder to verify bug 34302
+ * Placeholder to verify T36302
* @covers Preferences::profilePreferences
+ * @deprecated replaced by DefaultPreferencesFactoryTest::testEmailAuthentication()
*/
public function testEmailAuthenticationFieldWhenUserHasNoEmail() {
$prefs = $this->prefsFor( 'noemail' );
}
/**
- * Placeholder to verify bug 34302
+ * Placeholder to verify T36302
* @covers Preferences::profilePreferences
+ * @deprecated replaced by DefaultPreferencesFactoryTest::testEmailAuthentication()
*/
public function testEmailAuthenticationFieldWhenUserEmailNotAuthenticated() {
$prefs = $this->prefsFor( 'notauth' );
}
/**
- * Placeholder to verify bug 34302
+ * Placeholder to verify T36302
* @covers Preferences::profilePreferences
+ * @deprecated replaced by DefaultPreferencesFactoryTest::testEmailAuthentication()
*/
public function testEmailAuthenticationFieldWhenUserEmailIsAuthenticated() {
$prefs = $this->prefsFor( 'auth' );
/** Helper */
protected function prefsFor( $user_key ) {
- $preferences = [];
- Preferences::profilePreferences(
+ return Preferences::getPreferences(
$this->prefUsers[$user_key],
- $this->context,
- $preferences
+ $this->context
);
-
- return $preferences;
}
}