BUGFIX: disable basic auth for the restful controller test

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@109714 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Mateusz Uzdowski 2010-08-18 22:39:58 +00:00 committed by Sam Minnee
parent 0e60353e05
commit e9fad58efc

View File

@ -135,9 +135,12 @@ class RestfulServiceTest extends SapphireTest {
}
class RestfulServiceTest_Controller extends Controller {
public function init() {
$this->basicAuthEnabled = false;
parent::init();
}
public function index() {
BasicAuth::protect_entire_site(false);
$request = '';
foreach ($this->request->requestVars() as $key=>$value) {
$request .= "\t\t<request_item name=\"$key\">$value</request_item>\n";
@ -168,7 +171,6 @@ XML;
}
public function invalid() {
BasicAuth::protect_entire_site(false);
$out = <<<XML
<?xml version="1.0"?>
<test>