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

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

    public function testXGetApiKeysAction()
    {
        if (!$this->getUser()->canManageAcl()) {
            $this->markTestSkipped('Specified test user is not allowed to get api keys.');
        }
        $r = $this->internalRequest('/account/users/xGetApiKeys?userId=' . $this->getUser()->getId());
        if (!empty($r['success'])) {
            $this->assertArrayHasKey('accessKey', $r);
            $this->assertArrayHasKey('secretKey', $r);
        }
    }