public function XmlRpcMessagesTest::testRequestContentTypeDefinition in xmlrpc 8
Ensure that XML-RPC client sets correct encoding in request http headers.
File
- src/
Tests/ XmlRpcMessagesTest.php, line 66
Class
- XmlRpcMessagesTest
- Tests large messages and method alterations.
Namespace
Drupal\xmlrpc\TestsCode
public function testRequestContentTypeDefinition() {
$headers = xmlrpc($this
->getEndpoint(), [
'test.headerEcho' => [],
]);
$this
->assertIdentical($headers['Content-Type'], 'text/xml; charset=utf-8');
}