protected function XMLRPCBasicTestCase::testMethodSignature

Ensure that system.methodSignature returns an array of signatures.

Archivo

drupal-7.x/modules/simpletest/tests/xmlrpc.test, line 47

Class

XMLRPCBasicTestCase
Perform basic XML-RPC tests that do not require addition callbacks.

Código

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