mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing test assert for APP_DIR scenarios with non standard folder names
This commit is contained in:
parent
07c901dfd0
commit
ef270b95c7
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ class SchemaShellTest extends CakeTestCase {
|
|||
$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 @@ class SchemaShellTest extends CakeTestCase {
|
|||
'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);
|
||||
|
|
Loading…
Reference in a new issue