Skip to content

Commit

Permalink
Adding patch from jperras to fix issues with non 'app' APP_DIR values.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 7, 2009
1 parent 98c2801 commit 91503f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/console/libs/schema.test.php
Expand Up @@ -148,7 +148,7 @@ function testStartup() {
$this->Shell->startup();
$this->assertTrue(isset($this->Shell->Schema));
$this->assertTrue(is_a($this->Shell->Schema, 'CakeSchema'));
$this->assertEqual($this->Shell->Schema->name, 'App');
$this->assertEqual(strtolower($this->Shell->Schema->name), strtolower(APP_DIR));
$this->assertEqual($this->Shell->Schema->file, 'schema.php');

unset($this->Shell->Schema);
Expand All @@ -168,7 +168,7 @@ function testStartup() {
'path' => '/test/path'
);
$this->Shell->startup();
$this->assertEqual($this->Shell->Schema->name, 'App');
$this->assertEqual(strtolower($this->Shell->Schema->name), strtolower(APP_DIR));
$this->assertEqual($this->Shell->Schema->file, 'other_file.php');
$this->assertEqual($this->Shell->Schema->connection, 'test_suite');
$this->assertEqual($this->Shell->Schema->path, '/test/path');
Expand Down

0 comments on commit 91503f8

Please sign in to comment.