Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing failing tests cased by App::object() cache being warm.

Removing code duplicated in CakeTestCase methods.
Adding missing parent calls.
  • Loading branch information...
commit 4d1f41dddc630cb57d5639c58905de07b803cb94 1 parent 572412e
@markstory markstory authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Test/Case/View/ThemeViewTest.php
View
6 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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.