Browse Source

Changes relatives to templates from last commit.

Juan Basso 15 years ago
parent
commit
6f821e0d4d

app/Console/templates/empty → app/Console/Templates/empty


+ 3 - 3
lib/Cake/Test/Case/Console/Command/Task/ProjectTaskTest.php

@@ -70,7 +70,7 @@ class ProjectTaskTest extends CakeTestCase {
  * @return void
  */
 	protected function _setupTestProject() {
-		$skel = CAKE . 'Console' . DS . 'templates' . DS . 'skel';
+		$skel = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
 		$this->Task->expects($this->at(0))->method('in')->will($this->returnValue('y'));
 		$this->Task->bake($this->Task->path . 'bake_test_app', $skel);
 	}
@@ -116,7 +116,7 @@ class ProjectTaskTest extends CakeTestCase {
  */
 	public function testExecuteWithAbsolutePath() {
 		$this->Task->args[0] = TMP . 'tests' . DS . 'bake_test_app';
-		$this->Task->params['skel'] = CAKE . 'Console' . DS . 'templates' . DS . 'skel';
+		$this->Task->params['skel'] = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
 		$this->Task->expects($this->at(0))->method('in')->will($this->returnValue('y'));
 		$this->Task->execute();
 
@@ -269,7 +269,7 @@ class ProjectTaskTest extends CakeTestCase {
  * @return void
  */
 	public function testExecute() {
-		$this->Task->params['skel'] = CAKE . 'Console' . DS. 'templates' . DS . 'skel';
+		$this->Task->params['skel'] = CAKE . 'Console' . DS. 'Templates' . DS . 'skel';
 		$this->Task->params['working'] = TMP . 'tests' . DS;
 
 		$path = $this->Task->path . 'bake_test_app';

+ 2 - 2
lib/Cake/Test/Case/Console/Command/Task/TemplateTaskTest.php

@@ -89,7 +89,7 @@ class TemplateTaskTest extends CakeTestCase {
 	public function testFindingInstalledThemesForBake() {
 		$consoleLibs = CAKE . 'Console' . DS;
 		$this->Task->initialize();
-		$this->assertEqual($this->Task->templatePaths['default'], $consoleLibs . 'templates' . DS . 'default' . DS);
+		$this->assertEqual($this->Task->templatePaths['default'], $consoleLibs . 'Templates' . DS . 'default' . DS);
 	}
 
 /**
@@ -99,7 +99,7 @@ class TemplateTaskTest extends CakeTestCase {
  * @return void
  */
 	public function testGetThemePath() {
-		$defaultTheme = CAKE . 'Console' . DS . 'templates' . DS . 'default' .DS;
+		$defaultTheme = CAKE . 'Console' . DS . 'Templates' . DS . 'default' .DS;
 		$this->Task->templatePaths = array('default' => $defaultTheme);
 
 		$this->Task->expects($this->exactly(1))->method('in')->will($this->returnValue('1'));

+ 2 - 2
lib/Cake/Test/Case/Utility/FolderTest.php

@@ -146,7 +146,7 @@ class FolderTest extends CakeTestCase {
  * @return void
  */
 	public function testOperations() {
-		$path = CAKE . 'Console' . DS . 'templates' . DS . 'skel';
+		$path = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
 		$Folder = new Folder($path);
 
 		$result = is_dir($Folder->pwd());
@@ -219,7 +219,7 @@ class FolderTest extends CakeTestCase {
 	public function testChmod() {
 		$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Folder permissions tests not supported on Windows.');
 
-		$path = CAKE . 'Console' . DS . 'templates' . DS . 'skel';
+		$path = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
 		$Folder = new Folder($path);
 
 		$subdir = 'test_folder_new';

lib/Cake/Test/test_app/Console/templates/test/classes/test_object.ctp → lib/Cake/Test/test_app/Console/Templates/test/classes/test_object.ctp


app/Vendor/shells/tasks/empty → lib/Cake/Test/test_app/Plugin/TestPlugin/Console/Templates/empty


+ 0 - 0
lib/Cake/Test/test_app/Plugin/TestPlugin/Console/templates/empty


app/Vendor/shells/templates/empty → lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/Templates/empty


+ 0 - 0
lib/Cake/Test/test_app/Plugin/TestPluginTwo/Console/templates/empty