getUsers() public method

Returns the list of all the users
public getUsers ( string $userLogins = '' ) : array
$userLogins string Comma separated list of users to select. If not specified, will return all users
return array the list of all the users
 public function testSetSuperUserAccess_ShouldAddAndRemoveSuperUserAccessOnlyForGivenLogin()
 {
     $this->api->addUser('login1', 'password1', '*****@*****.**', false);
     $this->api->addUser('login2', 'password2', '*****@*****.**', false);
     $this->api->addUser('login3', 'password3', '*****@*****.**', false);
     $this->api->setSuperUserAccess('login2', true);
     // test add Super User access
     $users = $this->api->getUsers();
     $this->assertEquals(0, $users[0]['superuser_access']);
     $this->assertEquals(1, $users[1]['superuser_access']);
     $this->assertEquals('login2', $users[1]['login']);
     $this->assertEquals(0, $users[2]['superuser_access']);
     // should also accept string '1' to add Super User access
     $this->api->setSuperUserAccess('login1', '1');
     // test remove Super User access
     $this->api->setSuperUserAccess('login2', false);
     $users = $this->api->getUsers();
     $this->assertEquals(1, $users[0]['superuser_access']);
     $this->assertEquals('login1', $users[0]['login']);
     $this->assertEquals(0, $users[1]['superuser_access']);
     $this->assertEquals(0, $users[2]['superuser_access']);
     $this->api->setSuperUserAccess('login3', true);
     // should also accept string '0' to remove Super User access
     $this->api->setSuperUserAccess('login1', '0');
     $users = $this->api->getUsers();
     $this->assertEquals(0, $users[0]['superuser_access']);
     $this->assertEquals(0, $users[1]['superuser_access']);
     $this->assertEquals('login3', $users[2]['login']);
     $this->assertEquals(1, $users[2]['superuser_access']);
 }