From 62d4397d4a112a446432c3326ca6162af41bc476 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 22 May 2008 02:46:24 +0000 Subject: [PATCH] All components group works. Acl test and Auth test were clobbering each other. git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7000 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/tests/cases/libs/controller/components/auth.test.php | 1 + .../cases/libs/controller/components/request_handler.test.php | 1 + 2 files changed, 2 insertions(+) diff --git a/cake/tests/cases/libs/controller/components/auth.test.php b/cake/tests/cases/libs/controller/components/auth.test.php index e9c50f370..fcd0b601f 100644 --- a/cake/tests/cases/libs/controller/components/auth.test.php +++ b/cake/tests/cases/libs/controller/components/auth.test.php @@ -155,6 +155,7 @@ class AuthTest extends CakeTestCase { function startTest() { if (!$this->initialized) { Configure::write('Acl.database', 'test_suite'); + Configure::write('Acl.classname', 'DbAcl'); if (isset($this->fixtures) && (!is_array($this->fixtures) || empty($this->fixtures))) { unset($this->fixtures); } diff --git a/cake/tests/cases/libs/controller/components/request_handler.test.php b/cake/tests/cases/libs/controller/components/request_handler.test.php index 1df68d4fb..81a60bd93 100644 --- a/cake/tests/cases/libs/controller/components/request_handler.test.php +++ b/cake/tests/cases/libs/controller/components/request_handler.test.php @@ -274,6 +274,7 @@ class RequestHandlerComponentTest extends CakeTestCase { function tearDown() { unset($this->RequestHandler); unset($this->Controller); + header('Content-type: text/html'); //reset content type. } } ?> \ No newline at end of file