function XMLRPCBasicTestCase::testMethodSignature
Ensure that system.methodSignature returns an array of signatures.
File
-
modules/
simpletest/ tests/ xmlrpc.test, line 47
Class
- XMLRPCBasicTestCase
- Perform basic XML-RPC tests that do not require addition callbacks.
Code
protected function testMethodSignature() {
$url = url(NULL, array(
'absolute' => TRUE,
)) . 'xmlrpc.php';
$signature = xmlrpc($url, array(
'system.methodSignature' => array(
'system.listMethods',
),
));
$this->assert(is_array($signature) && !empty($signature) && is_array($signature[0]), 'system.methodSignature returns an array of signature arrays.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.