| 7 xmlrpc.test | protected XMLRPCBasicTestCase::testMethodSignature() |
| 8 xmlrpc.test | protected XMLRPCBasicTestCase::testMethodSignature() |
Ensure that system.methodSignature returns an array of signatures.
File
- modules/
simpletest/ tests/ xmlrpc.test, line 47
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]),
t('system.methodSignature returns an array of signature arrays.'));
}
Login or register to post comments