Skip to content

Commit

Permalink
Fixing paths and asserts for ShellTest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Apr 22, 2011
1 parent 30dc37f commit 8eb24ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/tests/Case/Console/Command/ShellTest.php
Expand Up @@ -170,20 +170,20 @@ function testMergeVars() {
public function testInitialize() {
App::build(array(
'plugins' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'plugins' . DS),
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'models' . DS)
'models' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'Model' . DS)
), true);

$this->Shell->uses = array('TestPlugin.TestPluginPost');
$this->Shell->initialize();

$this->assertTrue(isset($this->Shell->TestPluginPost));
$this->assertIsA($this->Shell->TestPluginPost, 'TestPluginPost');
$this->assertInstanceOf('TestPluginPost', $this->Shell->TestPluginPost);
$this->assertEqual($this->Shell->modelClass, 'TestPluginPost');

$this->Shell->uses = array('Comment');
$this->Shell->initialize();
$this->assertTrue(isset($this->Shell->Comment));
$this->assertIsA($this->Shell->Comment, 'Comment');
$this->assertInstanceOf('Comment', $this->Shell->Comment);
$this->assertEqual($this->Shell->modelClass, 'Comment');

App::build();
Expand Down

0 comments on commit 8eb24ed

Please sign in to comment.