/** @var DerivativeContext */
private $mContext;
- private $mOldGetPreferencesHooks = false;
+ private $mOldGetPreferencesHooks;
private static $Success = array( 'options' => 'success' );
protected function tearDown() {
global $wgHooks;
- if ( $this->mOldGetPreferencesHooks !== false ) {
- $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
- $this->mOldGetPreferencesHooks = false;
- }
+ $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
+ $this->mOldGetPreferencesHooks = false;
parent::tearDown();
}
$this->mUserMock->expects( $this->once() )
->method( 'saveSettings' );
- $request = $this->getSampleRequest( array( 'change' => 'willBeNull|willBeEmpty=|willBeHappy=Happy' ) );
+ $request = $this->getSampleRequest( array(
+ 'change' => 'willBeNull|willBeEmpty=|willBeHappy=Happy'
+ ) );
$response = $this->executeQuery( $request );
->method( 'saveSettings' );
$request = $this->getSampleRequest( array(
- 'change' => 'testmultiselect-opt1=1|testmultiselect-opt2|testmultiselect-opt3=|testmultiselect-opt4=0'
+ 'change' => 'testmultiselect-opt1=1|testmultiselect-opt2|'
+ . 'testmultiselect-opt3=|testmultiselect-opt4=0'
) );
$response = $this->executeQuery( $request );