You are here

protected function XmlRpcTestBase::xmlRpcGet in xmlrpc 8

Invokes xmlrpc method.

Parameters

array $args: An associative array whose keys are the methods to call and whose values are the arguments to pass to the respective method. If multiple methods are specified, a system.multicall is performed.

array $headers: (optional) An array of headers to pass along.

Return value

mixed The result of xmlrpc() function call.

See also

xmlrpc()

6 calls to XmlRpcTestBase::xmlRpcGet()
XmlRpcBasicTest::testAcceptHeaders in src/Tests/XmlRpcBasicTest.php
Ensure that XML-RPC correctly handles XML Accept headers.
XmlRpcBasicTest::testListMethods in src/Tests/XmlRpcBasicTest.php
Ensure that a basic XML-RPC call with no parameters works.
XmlRpcBasicTest::testMethodSignature in src/Tests/XmlRpcBasicTest.php
Ensure that system.methodSignature returns an array of signatures.
XmlRpcMessagesTest::testAlterListMethods in src/Tests/XmlRpcMessagesTest.php
Ensure that hook_xmlrpc_alter() can hide even builtin methods.
XmlRpcMessagesTest::testSizedMessages in src/Tests/XmlRpcMessagesTest.php
Make sure that XML-RPC can transfer large messages.

... See full list

File

src/Tests/XmlRpcTestBase.php, line 53

Class

XmlRpcTestBase
A base class simplifying xmlrpc() calls testing.

Namespace

Drupal\xmlrpc\Tests

Code

protected function xmlRpcGet(array $args, array $headers = []) {
  $url = Url::fromRoute('xmlrpc', [], [
    'absolute' => TRUE,
  ])
    ->toString();
  $result = xmlrpc($url, $args, $headers);
  $this
    ->verboseResult($result);
  return $result;
}