diff --git a/tests/api/RestfulServiceTest.php b/tests/api/RestfulServiceTest.php
index 2ad7adef1..76f943a4a 100644
--- a/tests/api/RestfulServiceTest.php
+++ b/tests/api/RestfulServiceTest.php
@@ -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$value\n";
@@ -168,7 +171,6 @@ XML;
}
public function invalid() {
- BasicAuth::protect_entire_site(false);
$out = <<