Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.647 kB
<?php
/**
* @package framework
* @subpackage tests
*/
class SapphireSoapServerTest extends FunctionalTest {
/**
* @see http://open.silverstripe.com/ticket/4570
*/
function testWsdl() {
$response = $this->get('SapphireSoapServerTest_MyServer/wsdl');
$this->assertEquals(
$response->getHeader('Content-Type'),
'text/xml',
'wsdl request returns with correct XML content type'
);
}
}
/**
* @package framework
* @subpackage tests
*/
class SapphireSoapServerTest_MyServer extends SapphireSoapServer {
function Link($action = null) {
return Controller::join_links('SapphireSoapServerTest_MyServer', $action);
}
}
Jump to Line
Something went wrong with that request. Please try again.