protected function XMLRPCBasicTestCase::testMethodSignature

7.x xmlrpc.test protected XMLRPCBasicTestCase::testMethodSignature()

Ensure that system.methodSignature returns an array of signatures.

File

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