mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 10:36:16 +00:00
only check the default template path is correct
this prevents a misleading error if you've more than one bake template installed
This commit is contained in:
parent
37b98ff1a6
commit
e024b6b43b
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ class TemplateTaskTest extends CakeTestCase {
|
|||
public function testFindingInstalledThemesForBake() {
|
||||
$consoleLibs = CAKE . 'console' . DS;
|
||||
$this->Task->initialize();
|
||||
$this->assertEqual($this->Task->templatePaths, array('default' => $consoleLibs . 'templates' . DS . 'default' . DS));
|
||||
$this->assertEqual($this->Task->templatePaths['default'], $consoleLibs . 'templates' . DS . 'default' . DS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -161,4 +161,4 @@ class TemplateTaskTest extends CakeTestCase {
|
|||
$result = $this->Task->generate('classes', 'fixture');
|
||||
$this->assertPattern('/ArticleFixture extends CakeTestFixture/', $result);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue