2009-09-21 11:55:43 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2009-09-21 11:55:43 +02:00
|
|
|
* @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'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2009-09-21 11:55:43 +02:00
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class SapphireSoapServerTest_MyServer extends SapphireSoapServer {
|
|
|
|
|
|
|
|
function Link($action = null) {
|
|
|
|
return Controller::join_links('SapphireSoapServerTest_MyServer', $action);
|
|
|
|
}
|
2012-03-24 04:04:52 +01:00
|
|
|
}
|