silverstripe-framework/tests/api/SapphireSoapServerTest.php
Ingo Schommer 2cb99122d3 BUGFIX Fixed content-type for SapphireSoapServer->wsdl() (#4570, thanks Cristian)
MINOR Added documentation for SapphireSoapServer

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@86876 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-09-21 09:55:43 +00:00

31 lines
644 B
PHP

<?php
/**
* @package sapphire
* @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 sapphire
* @subpackage tests
*/
class SapphireSoapServerTest_MyServer extends SapphireSoapServer {
function Link($action = null) {
return Controller::join_links('SapphireSoapServerTest_MyServer', $action);
}
}