Skip to content
Browse files

Fixing test assert for APP_DIR scenarios with non standard folder names

  • Loading branch information...
1 parent 07c901d commit ef270b95c726ca2a131887b8ea53d87d779642ed @sarahhenkens sarahhenkens committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
View
4 lib/Cake/Test/Case/Console/Command/SchemaShellTest.php
@@ -135,7 +135,7 @@ public function testStartup() {
$this->Shell->startup();
$this->assertTrue(isset($this->Shell->Schema));
$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->Shell->Schema = null;
@@ -155,7 +155,7 @@ public function testStartup() {
'path' => '/test/path'
);
$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('test', $this->Shell->Schema->connection);
$this->assertEquals('/test/path', $this->Shell->Schema->path);

0 comments on commit ef270b9

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