Skip to content

Commit

Permalink
Fixing test assert for APP_DIR scenarios with non standard folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jelle Henkens committed May 13, 2012
1 parent 07c901d commit ef270b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
Expand Up @@ -135,7 +135,7 @@ public function testStartup() {
$this->Shell->startup(); $this->Shell->startup();
$this->assertTrue(isset($this->Shell->Schema)); $this->assertTrue(isset($this->Shell->Schema));
$this->assertTrue(is_a($this->Shell->Schema, 'CakeSchema')); $this->assertTrue(is_a($this->Shell->Schema, 'CakeSchema'));
$this->assertEquals(strtolower(APP_DIR), strtolower($this->Shell->Schema->name)); $this->assertEquals(Inflector::camelize(Inflector::slug(APP_DIR)), $this->Shell->Schema->name);
$this->assertEquals('schema.php', $this->Shell->Schema->file); $this->assertEquals('schema.php', $this->Shell->Schema->file);


$this->Shell->Schema = null; $this->Shell->Schema = null;
Expand All @@ -155,7 +155,7 @@ public function testStartup() {
'path' => '/test/path' 'path' => '/test/path'
); );
$this->Shell->startup(); $this->Shell->startup();
$this->assertEquals(strtolower(APP_DIR), strtolower($this->Shell->Schema->name)); $this->assertEquals(Inflector::camelize(Inflector::slug(APP_DIR)), $this->Shell->Schema->name);
$this->assertEquals('other_file.php', $this->Shell->Schema->file); $this->assertEquals('other_file.php', $this->Shell->Schema->file);
$this->assertEquals('test', $this->Shell->Schema->connection); $this->assertEquals('test', $this->Shell->Schema->connection);
$this->assertEquals('/test/path', $this->Shell->Schema->path); $this->assertEquals('/test/path', $this->Shell->Schema->path);
Expand Down

0 comments on commit ef270b9

Please sign in to comment.