Skip to content

Commit

Permalink
reapply template -> theme change
Browse files Browse the repository at this point in the history
a set of bake tempates is implemented in exactly the same way as a view
"theme" - by creating a plugin, with a `Template\Bake` folder
  • Loading branch information
AD7six committed Nov 14, 2014
1 parent adaabac commit 780ede5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Shell/BakeShell.php
Expand Up @@ -241,7 +241,7 @@ public function getOptionParser() {
'help' => 'Database connection to use in conjunction with `bake all`.',
'short' => 'c',
'default' => 'default'
])->addOption('template', [
])->addOption('theme', [
'short' => 't',
'help' => 'Theme to use when baking code.'
]);
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Shell/CompletionShellTest.php
Expand Up @@ -152,7 +152,7 @@ public function testOptions() {
$this->Shell->runCommand(['options', 'bake']);
$output = $this->out->output;

$expected = "--help -h --verbose -v --quiet -q --connection -c --template -t\n";
$expected = "--help -h --verbose -v --quiet -q --connection -c --theme -t\n";
$this->assertTextEquals($expected, $output);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Shell/Task/TemplateTaskTest.php
Expand Up @@ -70,7 +70,7 @@ public function testGenerate() {
*/
public function testGenerateWithTemplateOverride() {
Plugin::load('TestBakeTheme');
$this->Task->params['template'] = 'TestBakeTheme';
$this->Task->params['theme'] = 'TestBakeTheme';
$this->Task->set(array(
'plugin' => 'Special'
));
Expand All @@ -85,7 +85,7 @@ public function testGenerateWithTemplateOverride() {
*/
public function testGenerateWithTemplateFallbacks() {
Plugin::load('TestBakeTheme');
$this->Task->params['template'] = 'TestBakeTheme';
$this->Task->params['theme'] = 'TestBakeTheme';
$this->Task->set(array(
'name' => 'Articles',
'table' => 'articles',
Expand Down

0 comments on commit 780ede5

Please sign in to comment.