Commit graph

707 commits

Author SHA1 Message Date
mark_story
b4f4aeeec7 Moving shell templates dirs.
Updating TemplateTask to reflect changes in directories.
Updating test cases to use App::build()/App::path()
2009-07-26 01:29:08 -04:00
mark_story
e9afb63d19 Merge branch '1.3' into 1.3-bake 2009-07-25 18:19:44 -04:00
gwoo
fe569ecdf8 updating bootstrap comments 2009-07-25 15:17:27 -07:00
gwoo
766e12bc2a Merge branch '1.3' into 1.3-newlines 2009-07-25 10:41:40 -07:00
gwoo
986af28de0 Merge branch '1.2' into 1.3 2009-07-24 15:57:30 -07:00
AD7six
737740d9c2 adding some test case folders 2009-07-25 00:14:32 +02:00
AD7six
00ac0348bf correcting reference to Dispatcher class 2009-07-24 22:04:06 +02:00
AD7six
ae74dca1a5 Moving the clear command into the shell dispatcher 2009-07-24 22:01:55 +02:00
AD7six
b2142df2bc adding a newline before all comment blocks 2009-07-24 21:18:37 +02:00
jperras
e40428801e Removing all uses of uses() global method & replacing with require or App::import. 2009-07-24 13:41:08 -04:00
gwoo
38e1954996 Merge branch '1.3-bake' into 1.3 2009-07-24 10:37:22 -07:00
mark_story
04875033ea Removing trailing spaces. 2009-07-23 17:19:08 -04:00
DarkAngelBGE
9eaad7528f Removing usage of up() and low() from core
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8253 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-23 21:04:40 +00:00
DarkAngelBGE
8f61c666c2 Removing usage of r() from core
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8252 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-23 20:51:24 +00:00
gwoo
f295a21831 updating some code related to Configure/App changes. Fixing issue when cache is not configured 2009-07-22 09:11:38 -07:00
gwoo
8dc777a2b7 Merge branch '1.3-bake' into 1.3 2009-07-22 08:56:00 -07:00
mark_story
19eca9003d Adding ability to generate fixtures from data in app tables, with custom conditions. Test cases added. 2009-07-21 00:00:39 -04:00
gwoo
f14a223f1d Merge branch '1.3-bake' into 1.3 2009-07-20 09:37:18 -07:00
gwoo
a2f0ab8b27 Merge branch '1.2' into 1.3 2009-07-20 09:31:56 -07:00
mark_story
10f5ae22a9 Adding prompt for supplying custom conditions for fixture. 2009-07-20 00:59:18 -04:00
mark_story
de51d880fb Adding prompts for PluginTask with no args.
Test cases added.
2009-07-20 00:20:58 -04:00
mark_story
2ab3986d14 Removing extra ; from generated code. 2009-07-17 16:00:44 -04:00
mark_story
ad3e5f43e0 Removing newlines in files.
Adding and update bake.test to bake group test.
Fixing doc blocks.
2009-07-16 23:55:41 -04:00
mark_story
7b06ba2b3d Adding support for -admin flag when baking a controller's views. Using -admin will only bake admin methods. Refactoring some methods, removing newlines. 2009-07-16 23:12:47 -04:00
mark_story
22c98cc712 Adding empty files to baked plugins. 2009-07-16 21:49:26 -04:00
mark_story
2e3a311b0d Adding config/sql to plugin baking. 2009-07-16 21:34:14 -04:00
mark_story
cbb568b3c7 Fixing getAdmin() method location to reflect changes in API. 2009-07-16 12:50:37 -04:00
mark_story
a7fb5f96e9 Adding fixture baking in when model is baked. 2009-07-16 09:12:32 -04:00
mark_story
08ce38c6cc Updating bake all to reflect changes in Task apis. Adding additional messages. 2009-07-16 08:52:33 -04:00
mark_story
1e8d01992e Adding test generation for controllers baked with ControllerTask::all() 2009-07-15 10:14:16 -04:00
mark_story
80b9692856 Adding test and fixture generation to ModelTask::all 2009-07-15 10:00:35 -04:00
mark_story
f712d84d33 Applying patch from 'slywalker'. Updating datetime generation in baked files.
Fixed #6505

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8229 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-14 02:30:51 +00:00
mark_story
7e1f9eeebd Updating tests for ModelTask. Making it impossible to bake a model which does not have a table on the active connection. Fixes #6035 2009-07-08 23:30:29 -04:00
mark_story
9bbb33ef2f Fixing Configure::read() use in PluginTask. Adding PluginTask to the bake group test. Adding vendors directory generation to baked plugins. Fixes #5200. 2009-07-08 22:25:27 -04:00
mark_story
41eecdaa91 Adding the ability to set $displayField from bake. Refactoring ModelTask::bake() Fixes #4438. 2009-07-08 22:06:42 -04:00
mark_story
d671056044 Adding displayField detection and interaction to ModelTask. Test Cases added. 2009-07-08 09:10:18 -04:00
mark_story
dc98184086 Updating Shell and Bake tasks to use App::path() instead of Configure::read(). 2009-07-06 23:11:57 -04:00
mark_story
5c9b5febdf Merge branch '1.3' into 1.3-bake-integration
Conflicts:
	cake/console/libs/tasks/controller.php
2009-07-06 23:03:04 -04:00
mark_story
8d1457e048 Merge branch '1.3' into 1.3-bake-integration
Conflicts:
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/model.php
2009-07-06 22:20:03 -04:00
mariano.iglesias
bc5de16b6c Fixing bug introduced in r5219 that was preventing model save operations from working in Console shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8222 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-06 07:38:03 +00:00
gwoo
bc359259a2 Merge branch '1.2' into 1.3 2009-07-02 09:27:00 -07:00
mark_story
1a7965fde0 Adding output to getThemePath()
Adding param setting to getThemePath() as well so template choice is saved between file generations in the same session. Test cases added.
2009-07-01 23:49:50 -04:00
mark_story
659414f04f Fixing template location in Project task. 2009-07-01 23:48:51 -04:00
mark_story
4cb70580a2 Expanding test cases for ViewTask to be more specific and finer tests for admin_ methods. 2009-07-01 23:21:41 -04:00
mark_story
544188197d Fixing use of TemplateTask in other Tasks. Updating bake.group. 2009-07-01 00:50:38 -04:00
mark_story
1c6d0d5642 Removing old files. 2009-07-01 00:48:53 -04:00
mark_story
ad98139e35 Moving bake templates into templates/default.
Adding 'console template themes' to TemplateTask.
Adding test cases for console themes.
Moving files around.
2009-07-01 00:24:20 -04:00
mark_story
11ecde194d Updating ViewTask to use the ProjectTask.
Adding tests for previously missed code branch.
2009-06-30 21:50:28 -04:00
mark_story
ddc341e4de Updating ControllerTask to use ProjectTask. 2009-06-30 20:49:58 -04:00
mark_story
da99aa1c6a Moved Shell::getAdmin() to ProjectTask 2009-06-30 20:44:09 -04:00
mark_story
90b7f7f0ee Removing getAdmin from Shell. 2009-06-30 20:19:00 -04:00
mark_story
198511f639 Adding tests for security salt generation. 2009-06-30 18:30:39 -04:00
mark_story
285fdc22c6 Adding test case for api console.
Fixing issue where methods with no parameters were omitted from api method lists.
Fixes #6474

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8203 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-25 13:34:28 +00:00
mark_story
8c2a027842 Pointing test directory creation to TMP/tests/
Adding tests for ProjectTask::bake()
2009-06-16 23:05:48 -04:00
mark_story
981503755e Fixing camelCasing of plugin name for single word plugin names.
tests added.
2009-06-16 22:29:48 -04:00
mark_story
a2a7727c00 Fixing plugin prefix handling when using plugin task to bake plugin controllers. Plugin Models are correctly found, allowing bake to work.
Fixes #5069

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8199 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-17 02:17:18 +00:00
mark_story
88f95bc0c4 Making plugin task find plugins on $pluginPaths
Fixing i18n.
Adding tests for execute with 2 params.
2009-06-11 00:04:22 -04:00
mark_story
701d93c61c Adding test cases for execute()
Adding more i18n
Fixing issues with folders being left behind by tests.
2009-06-10 23:21:42 -04:00
mark_story
22c575595d Using more constants in paths. 2009-06-10 22:56:26 -04:00
mark_story
62199dba59 Adding $pluginPaths support to PluginTask 2009-06-10 22:52:38 -04:00
mark_story
8ca30f2d22 Adding test folder structure to PluginTask creation 2009-06-10 22:22:06 -04:00
mark_story
5eae9fcba5 Adding test case for PluginTask::bake() 2009-06-10 22:19:14 -04:00
gwoo
c3643767bf some more updates to path handling 2009-06-10 16:13:39 -07:00
mark_story
fd7ad7e861 Removing dead options.
Removing extra uses()
2009-06-08 23:15:05 -04:00
mark_story
ea0d5c84be Removing dead comparisons, extra uses() call. 2009-06-08 23:13:29 -04:00
gwoo
24d78dd671 moving path configuration to App class 2009-06-07 15:24:10 -07:00
mark_story
d810b43e80 Adding tests so no empty helpers/components
can be added. Refs #6383
2009-06-07 12:22:43 -04:00
mark_story
5e5293a866 Adding redirect() if deletion fails.
Fixing formatting.
2009-06-06 21:38:22 -04:00
mark_story
4d7f00504a Making -plugin function with ViewTask
Adding tests for -plugin parameter
Removing extra Folder calls.
2009-06-06 21:18:34 -04:00
mark_story
44bffc5bae Adding support for -plugin parameter to TestTask
Test cases for plugin path generation added.
2009-06-06 21:03:26 -04:00
mark_story
21818460a2 Additional tests for fixture baking to ensure
parameters are passed from model to fixture task
Adding -plugin support to ModelTask
2009-06-06 20:37:01 -04:00
mark_story
4d89086146 Adding -plugin support to Controller Task
Test cases added.
2009-06-06 20:25:57 -04:00
mark_story
375e175ac8 Updating path setting in bake, so paths
are not overwritten.
2009-06-06 20:03:26 -04:00
mark_story
84a496083f Adding proper -plugin parameter handling
Fixtures can now be baked into plugins.
Adding test cases.
2009-06-06 20:03:04 -04:00
mark_story
d312cd3215 Adding _pluginPath to Shell.
provides one method to find plugins in shells.
2009-06-06 19:59:58 -04:00
gwoo
f84ed69780 fixing undefined variable when new project is baked from skel 2009-06-05 19:05:05 -07:00
mark_story
928ec36acf Removing garbage methods. 2009-06-04 23:48:58 -04:00
mark_story
3d39feeac9 Adding help() entry for bake view all 2009-06-04 23:43:59 -04:00
mark_story
0099c8a428 Removing more if() blocks
Silencing Controller task in all()
2009-06-04 23:42:06 -04:00
mark_story
7cf7a0440c Removing extra if() that are not needed
as __loadController will stop() execution on error.
2009-06-04 23:40:03 -04:00
mark_story
bb566c3841 Adding test cases for various permutations of execute()
Allowing admin methods to be baked separately of regular methods.
2009-06-04 23:35:36 -04:00
mark_story
8040cc31e5 Adding connection prompts.
Fixing hard coded $ds
Adding i18n
Extracting customAction()
Test cases added.
2009-06-03 23:18:14 -04:00
mark_story
3c5e4a68fb Fixing notice errors. 2009-06-03 22:03:57 -04:00
mark_story
0a3af5b792 Refactoring out bakeActions
Adding tests for bake()
2009-06-03 21:59:46 -04:00
gwoo
6f21c18366 Merge branch '1.3-lib_renames' into 1.3 2009-06-02 10:17:02 -07:00
gwoo
fdd63d4e8e Merge branch 'master' into 1.3 2009-06-02 10:12:14 -07:00
mark_story
4c76b2f1a8 Unifying formatting of help() messages. 2009-05-30 00:55:44 -04:00
mark_story
03e7ca71b6 Reformatting help() 2009-05-30 00:46:25 -04:00
mark_story
9967b10b58 Removing dead options. 2009-05-30 00:34:45 -04:00
mark_story
fb2be781f2 Refactoring to use TemplateTask 2009-05-30 00:32:57 -04:00
mark_story
2b6ea8748c Adding flush so models in registry are always fresh
fixes issues baking model + test
2009-05-26 00:36:25 -04:00
mark_story
fe235f4e94 Tweaking template. 2009-05-26 00:20:17 -04:00
mark_story
79568cc742 Fixing controller test file generation 2009-05-25 23:57:15 -04:00
mark_story
518c318887 Adding tests and code for controller stub generation. 2009-05-25 23:48:41 -04:00
mark_story
877616ad9b Fixing broken comment. 2009-05-25 01:19:54 -04:00
mark_story
66b36ba3b8 Adding tests for other object types. 2009-05-25 01:02:59 -04:00
mark_story
975aab8009 Fixing plugin imports
Adding contstructor generation.
and test case for controller construction.
2009-05-25 00:54:23 -04:00
mark_story
587b0ca07d Test generation for models is partially complete.
fixtures and introspected methods work.
2009-05-24 23:50:21 -04:00
mark_story
eb9f40c6f4 extracting out object type interaction.
test case added.
2009-05-24 20:12:17 -04:00
mark_story
2cc00ac3e1 Adding test case for acl shell.
Fixing display of nodes with no alias when using 'cake acl view aro'
Fixes #6393

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8177 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-24 16:37:54 +00:00
mark_story
1d6ceffb92 Adding test case and function for generating
fixture lists from controller objects.
2009-05-24 01:30:04 -04:00
mark_story
61191d88cd Adding test cases and ability to pull all
fixtures for a model.
2009-05-24 01:15:31 -04:00
mark_story
f20a7e4f61 Adding method extraction and test case. 2009-05-23 23:48:25 -04:00
mark_story
dee9b6370b Adding test template. 2009-05-23 23:30:41 -04:00
mark_story
4fe3c2efe1 Removing ability to bake $useTable = false models. 2009-05-23 23:25:14 -04:00
mark_story
fe2e3d82fd Removing while() loops wrapping in() with concrete options. 2009-05-20 23:21:36 -04:00
mark_story
5843d5e40a Adding test case for DbConfig task
making DbConfigTask testable.
2009-05-20 23:15:31 -04:00
mark_story
dc01673503 More i18n strings. 2009-05-20 22:28:15 -04:00
mark_story
de1b495afb Adding some i18n strings.
Moving test creation to TestTask.
2009-05-20 00:46:09 -04:00
mark_story
6eada280cf Fixing typo.
Removing newlines
2009-05-20 00:00:36 -04:00
mark_story
a4f6fdc3b9 Refactoring bake action generation into a template
file.
Adding template file for controller actions.
2009-05-19 23:53:41 -04:00
mark_story
2cae04308c Adding tests for interactive mode.
Fixing notice error.
2009-05-19 00:18:59 -04:00
mark_story
0d7b86fc8b Removing $uses as part of bake. 2009-05-18 22:26:16 -04:00
mark_story
9d405faf8f Allowing controller bake all to use
connections other than default.
2009-05-17 00:31:37 -04:00
mark_story
d31c43d409 Refactoring code generation into controller.ctp 2009-05-17 00:05:07 -04:00
mark_story
08394629c9 Creating confirmController and test case. 2009-05-16 23:17:40 -04:00
mark_story
938ba849d2 Refactoring doXX methods
Adding doUses seems to have gotten lost at one point.
2009-05-16 22:41:38 -04:00
mark_story
9eb27f14d7 Adding tests and starting clean up of __interactive. 2009-05-15 00:04:57 -04:00
mark_story
d609a62dc5 Adding welcome message back to model task 2009-05-15 00:03:53 -04:00
mark_story
b1de3166e9 Removing dead options. 2009-05-14 23:33:10 -04:00
mark_story
68a858b39a Adding test case for getName 2009-05-14 23:28:27 -04:00
mark_story
03e231c05d Adding test case for controller task.
Refactoring listAll() to use Model task which has 
the necessary code.
2009-05-14 23:17:42 -04:00
mark_story
e6881cced4 Extracted another method. 2009-05-14 23:00:29 -04:00
mark_story
305104140c Adding tests for __interactive 2009-05-14 22:36:04 -04:00
mark_story
ad930f277d Moving test generation to a temporary home 2009-05-14 22:23:36 -04:00
mark_story
3f7821c258 Adding test cases for bake model all
Adding test cases for bake model MyModel
Fixing all()
Starting refactor into Test task
2009-05-14 21:42:07 -04:00
mark_story
a85bf16560 Cleaning up model template. 2009-05-13 23:50:46 -04:00
mark_story
4a9a5bce69 Removing template code. 2009-05-13 23:37:21 -04:00
mark_story
3c08369e3a Adding bake model template.
Adding tests for bake model.
2009-05-13 23:36:13 -04:00
mark_story
a7f0071c61 Forcing templatePaths to exist. 2009-05-13 23:35:41 -04:00
mark_story
15fb1a711a Updating TemplateTask adding test case and test object file. 2009-05-12 22:00:30 -04:00
mark_story
a38233e75d Updating FixtureTask and FixtureTask test to use TemplateTask 2009-05-12 21:26:37 -04:00
mark_story
dff90e892e Adding Template Task, removing CodeGenerator. 2009-05-12 21:19:15 -04:00
mark_story
3ea2b5a87d Moving CodeGenerator class into bake shell.
Updating FixtureTask and test cases.
Updating template for fixtures.
2009-05-10 22:16:38 -04:00
mark_story
a6d16500a9 Adding CodeGenerator in a temporary place. 2009-05-10 13:33:52 -04:00
mark_story
328756f686 Adding fixture template 2009-05-10 13:33:05 -04:00
mark_story
4b75c6b78e minor cleanup 2009-05-10 12:43:38 -04:00
mark_story
d066a4a0d6 Extracting method out. 2009-05-10 01:35:59 -04:00
mark_story
ec443c4371 Moving method and adding tests. 2009-05-10 01:04:40 -04:00
mark_story
5c48603bd0 Refactoring methods, adding self join association detection.
Test cases updated.
2009-05-09 23:32:22 -04:00
mark_story
4b4875e0a9 Renaming methods, fixing issue with habtm bleed through.
Added test cases for all relation generation.
2009-05-09 21:28:51 -04:00
mark_story
cd90f8c74b Fixing persistent option being forced to false when new database connections are baked. Fixes #6350
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8171 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-09 14:24:44 +00:00
mark_story
0467641469 minor cleanup 2009-05-09 02:22:29 -04:00
mark_story
31a266fc4c Refactoring association generation. 2009-05-09 02:20:46 -04:00
mark_story
11e2912945 Making output fit nicely on 80col display. 2009-05-09 01:00:14 -04:00
mark_story
8775f15375 Updating multiple validation generation.
Adding test coverage for interactive validations.
2009-05-09 00:35:03 -04:00
mark_story
103b97493a Adding test cases for validation generation
Updating validation generation functions.
2009-05-08 01:09:19 -04:00
mark_story
fae7ed5584 Refactoring model task. Starting to refactor
validation generation to enable multiple validation.
2009-05-08 00:49:26 -04:00
mark_story
fd5b422357 Fixing error when no connection is specified and
bake fixture Foo is used.
2009-05-07 23:59:43 -04:00
mark_story
bf7e257e02 Updating coding standards in bake templates and scaffolds. Fixes #6346
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8167 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-07 00:53:44 +00:00