getAllUsersPreferences() 공개 메소드

Returns an array of Preferences
public getAllUsersPreferences ( array $preferenceNames ) : array
$preferenceNames array array of preference names
리턴 array
예제 #1
0
 public function test_getAllUsersPreferences_whenLoginContainsUnderscore()
 {
     $user2 = 'user_Login2';
     $this->api->addUser($user2, 'password', '*****@*****.**');
     $this->api->setUserPreference($user2, 'myPreferenceName', 'valueForUser2');
     $this->api->setUserPreference($user2, 'RandomNOTREQUESTED', 'RandomNOTREQUESTED');
     $expected = array($user2 => array('myPreferenceName' => 'valueForUser2'));
     $result = $this->api->getAllUsersPreferences(array('myPreferenceName', 'otherPreferenceHere', 'randomDoesNotExist'));
     $this->assertSame($expected, $result);
 }