From 18843624bb5299a97b1551bc1a7e783dd4ba93f0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 15 Oct 2008 16:19:37 +0000 Subject: [PATCH] BUGFIX Added RestfulServerTest->testApiAccessBoolean() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64309 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/RestfulServerTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/RestfulServerTest.php b/tests/RestfulServerTest.php index ac39ae4d..1990d07c 100644 --- a/tests/RestfulServerTest.php +++ b/tests/RestfulServerTest.php @@ -25,6 +25,16 @@ class RestfulServerTest extends SapphireTest { $this->assertEquals($response->getStatusCode(), 403); } + public function testApiAccessBoolean() { + $url = "/api/v1/RestfulServerTest_Comment/1"; + $response = Director::test($url, null, null, 'GET'); + $this->assertContains('', $response->getBody()); + $this->assertContains('', $response->getBody()); + $this->assertContains('', $response->getBody()); + $this->assertContains('getBody()); + $this->assertContains('getBody()); + } + public function testAuthenticatedGET() { // @todo create additional mock object with authenticated VIEW permissions $url = "/api/v1/RestfulServerTest_SecretThing/1";