Skip to content
Browse files

Merge branch '2.0' of github.com:cakephp/cakephp into 2.0

  • Loading branch information...
2 parents 2878614 + 26dc6c8 commit 7f198436c683d00c9c2444843689ee9cded4215d @renan renan committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Console/Command/ShellTest.php
View
5 lib/Cake/Test/Case/Console/Command/ShellTest.php
@@ -172,21 +172,22 @@ public function testInitialize() {
'plugins' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS),
'models' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Model' . DS)
), true);
- CakePlugin::load('TestPlugin');
+ CakePlugin::load('TestPlugin');
$this->Shell->uses = array('TestPlugin.TestPluginPost');
$this->Shell->initialize();
$this->assertTrue(isset($this->Shell->TestPluginPost));
$this->assertInstanceOf('TestPluginPost', $this->Shell->TestPluginPost);
$this->assertEqual($this->Shell->modelClass, 'TestPluginPost');
+ CakePlugin::unload('TestPlugin');
$this->Shell->uses = array('Comment');
$this->Shell->initialize();
$this->assertTrue(isset($this->Shell->Comment));
$this->assertInstanceOf('Comment', $this->Shell->Comment);
$this->assertEqual($this->Shell->modelClass, 'Comment');
-
+
App::build();
}

0 comments on commit 7f19843

Please sign in to comment.
Something went wrong with that request. Please try again.