You are here

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\Tests

Code

public function testRequestContentTypeDefinition() {
  $headers = xmlrpc($this
    ->getEndpoint(), [
    'test.headerEcho' => [],
  ]);
  $this
    ->assertIdentical($headers['Content-Type'], 'text/xml; charset=utf-8');
}