From 4d1f41dddc630cb57d5639c58905de07b803cb94 Mon Sep 17 00:00:00 2001 From: "Mark Story mark@mark-story.com" Date: Thu, 1 Sep 2011 00:38:08 +0100 Subject: [PATCH] Fixing failing tests cased by App::object() cache being warm. Removing code duplicated in CakeTestCase methods. Adding missing parent calls. --- lib/Cake/Test/Case/View/ThemeViewTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Test/Case/View/ThemeViewTest.php b/lib/Cake/Test/Case/View/ThemeViewTest.php index b0adaeec745..d79f47890ea 100644 --- a/lib/Cake/Test/Case/View/ThemeViewTest.php +++ b/lib/Cake/Test/Case/View/ThemeViewTest.php @@ -103,7 +103,7 @@ class ThemeViewTest extends CakeTestCase { * @return void */ public function setUp() { - Router::reload(); + parent::setUp(); $request = new CakeRequest('posts/index'); $this->Controller = new Controller($request); $this->PostsController = new ThemePostsController($request); @@ -114,6 +114,7 @@ public function setUp() { 'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS), 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View'. DS) )); + App::objects('plugins', null, false); CakePlugin::loadAll(); } @@ -123,11 +124,10 @@ public function setUp() { * @return void */ public function tearDown() { + parent::tearDown(); unset($this->ThemeView); unset($this->PostsController); unset($this->Controller); - ClassRegistry::flush(); - App::build(); CakePlugin::unload(); }