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);
}
}