Browse Source

collateral test fixes

AD7six 11 years ago
parent
commit
323bccc38b
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/Shell/Task/TemplateTask.php
  2. 3 3
      tests/TestCase/Core/PluginTest.php

+ 1 - 1
src/Shell/Task/TemplateTask.php

@@ -56,7 +56,7 @@ class TemplateTask extends Shell {
 			return $this->View;
 		}
 
-		$theme = isset($this->params['template']) ? $this->params['template'] : '';
+		$theme = isset($this->params['theme']) ? $this->params['theme'] : '';
 
 		$viewOptions = [
 			'helpers' => ['Bake'],

+ 3 - 3
tests/TestCase/Core/PluginTest.php

@@ -248,7 +248,7 @@ class PluginTest extends TestCase {
  */
 	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());
 	}
 
@@ -271,7 +271,7 @@ class PluginTest extends TestCase {
 	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'));
@@ -292,7 +292,7 @@ class PluginTest extends TestCase {
 		));
 		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'));