setUserPreference() public method

Sets a user preference
public setUserPreference ( string $userLogin, string $preferenceName, string $preferenceValue ) : void
$userLogin string
$preferenceName string
$preferenceValue string
return void
Example #1
0
 /**
  * @expectedException \Exception
  */
 public function test_setUserPreference_throws_whenPreferenceNameContainsUnderscore()
 {
     $user2 = 'userLogin2';
     $this->api->addUser($user2, 'password', '*****@*****.**');
     $this->api->setUserPreference($user2, 'ohOH_myPreferenceName', 'valueForUser2');
 }