Permalink
Browse files

Adding patch from jperras to fix issues with non 'app' APP_DIR values.

  • Loading branch information...
1 parent 98c2801 commit 91503f8f8a87da69740be34a877c40df8a722094 @markstory markstory committed Sep 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 cake/tests/cases/console/libs/schema.test.php
@@ -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);
@@ -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');

0 comments on commit 91503f8

Please sign in to comment.