Skip to content

Commit

Permalink
collateral test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Nov 14, 2014
1 parent a809c67 commit 323bccc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Shell/Task/TemplateTask.php
Expand Up @@ -56,7 +56,7 @@ public function getView() {
return $this->View;
}

$theme = isset($this->params['template']) ? $this->params['template'] : '';
$theme = isset($this->params['theme']) ? $this->params['theme'] : '';

$viewOptions = [
'helpers' => ['Bake'],
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/Core/PluginTest.php
Expand Up @@ -248,7 +248,7 @@ public function testClassPathNotFound() {
*/
public function testLoadAll() {
Plugin::loadAll();
$expected = ['Company', 'PluginJs', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$expected = ['Company', 'PluginJs', 'TestBakeTheme', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$this->assertEquals($expected, Plugin::loaded());
}

Expand All @@ -271,7 +271,7 @@ public function testLoadAllWithPluginAlreadyLoaded() {
public function testLoadAllWithDefaults() {
$defaults = array('bootstrap' => true, 'ignoreMissing' => true);
Plugin::loadAll(array($defaults));
$expected = ['Company', 'PluginJs', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$expected = ['Company', 'PluginJs', 'TestBakeTheme', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$this->assertEquals($expected, Plugin::loaded());
$this->assertEquals('loaded js plugin bootstrap', Configure::read('PluginTest.js_plugin.bootstrap'));
$this->assertEquals('loaded plugin bootstrap', Configure::read('PluginTest.test_plugin.bootstrap'));
Expand All @@ -292,7 +292,7 @@ public function testLoadAllWithDefaultsAndOverride() {
));
Plugin::routes();

$expected = ['Company', 'PluginJs', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$expected = ['Company', 'PluginJs', 'TestBakeTheme', 'TestPlugin', 'TestPluginFour', 'TestPluginTwo', 'TestTheme'];
$this->assertEquals($expected, Plugin::loaded());
$this->assertEquals('loaded js plugin bootstrap', Configure::read('PluginTest.js_plugin.bootstrap'));
$this->assertEquals('loaded plugin routes', Configure::read('PluginTest.test_plugin.routes'));
Expand Down

0 comments on commit 323bccc

Please sign in to comment.