[TEMPORARY] Re-point A/B testing preference for test

Instead of writing to the visualeditor-enable preference (which is
user-facing), write to the visualeditor-testabpreference one (which
is made up and won't impact anything), so that we can test that the
A/B bucketing code works as expected.

This patch will be reverted once bucketing is confirmed to be working.

Change-Id: Ia738146c5bf68795bf812d64847ba74498888cd5
This commit is contained in:
James D. Forrester 2015-04-20 18:16:41 -07:00 committed by Catrope
parent 96aa5c9145
commit 1a42383cdd

View file

@ -665,7 +665,7 @@ class VisualEditorHooks {
$user->isLoggedin() &&
( ( $user->getId() % 2 ) === 0 )
) {
$user->setOption( 'visualeditor-enable', 1 );
$user->setOption( 'visualeditor-testabpreference', 1 );
$user->saveSettings();
}
return true;