mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
0e60353e05
commit
e9fad58efc
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user