Scalr\Tests\Functional\Ui\Controller\Account\UsersTest::testXGetListAction PHP Метод

testXGetListAction() публичный Метод

public testXGetListAction ( )
    public function testXGetListAction()
    {
        $chk = $this->_chk();
        $ret = $this->getUser()->isTeamOwnerInEnvironment($this->getEnvironment()->id);
        $this->assertInternalType('boolean', $ret);
        $response = $this->internalRequest('/account/users/xGetList');
        $this->assertResponseDataHasKeys($chk, $response, true, 'usersList');
        $userEmail = self::_getCreatedUserEmail();
        if ($this->getUser()->canManageAcl()) {
            foreach ($response['usersList'] as $v) {
                if ($v['email'] == $userEmail) {
                    //Removes previously created user
                    $this->removeUser($v['id']);
                    break;
                }
            }
        }
    }