You are here

protected function XMLRPCBasicTestCase::testMethodSignature in Drupal 7

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