Commit graph

264 commits

Author SHA1 Message Date
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
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
9f3a9e6d78 Adding test case for BakeShell and bake all 2009-07-16 08:51:06 -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
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
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
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
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
9627af2050 Adding tests for ProjectTask::execute(). 2009-06-30 22:23:48 -04:00
mark_story
f2031385c1 Fixing ViewTask test case in Group context.
Adding Group test for bake tasks
2009-06-30 21:59:37 -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
0eef6577e2 Fixing test that failed when no models were found in app. 2009-06-30 21:22:10 -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
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
bf7fcdfd37 Updating dates in PluginTask headers
Adding ProjectTask test case.
2009-06-16 22:34:16 -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
gwoo
f9339e3c81 simplified App::path(). Changed App::build() to handle all paths.
tests passing.
2009-06-11 09:13:16 -07: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
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
mark_story
2f5711c095 Adding test case for PluginTask 2009-06-10 21:43:55 -04:00
gwoo
c3643767bf some more updates to path handling 2009-06-10 16:13:39 -07: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
4141158f30 Additional tests for filename generation. 2009-06-06 21:09:56 -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
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
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
mark_story
91f90b5c05 Fixing minor issues with tests. 2009-06-03 21:35:11 -04:00
mark_story
f1821f5631 Adding test case for ViewTask 2009-05-30 00:28:18 -04:00
mark_story
b301654b96 Adding test cases for execute() 2009-05-30 00:14: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
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
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
838af5862e Making test bail if any of the required models exist. 2009-05-23 22:56:54 -04:00
mark_story
5843d5e40a Adding test case for DbConfig task
making DbConfigTask testable.
2009-05-20 23:15:31 -04:00
mark_story
e8eaf97dcf Additional tests for execute 2009-05-20 00:31:59 -04:00
mark_story
2cae04308c Adding tests for interactive mode.
Fixing notice error.
2009-05-19 00:18:59 -04:00
mark_story
8bcd8ff890 Adding skipIf's
Fixing typo, adding assertions.
2009-05-18 23:49:44 -04:00
mark_story
4f6d3219ef Adding test cases for bakeActions 2009-05-18 23:46:20 -04:00
mark_story
0d7b86fc8b Removing $uses as part of bake. 2009-05-18 22:26:16 -04:00
mark_story
c0f06be65e Adding test case for bake output. 2009-05-17 00:04:33 -04:00
mark_story
08394629c9 Creating confirmController and test case. 2009-05-16 23:17:40 -04:00
mark_story
9eb27f14d7 Adding tests and starting clean up of __interactive. 2009-05-15 00:04:57 -04:00
mark_story
68a858b39a Adding test case for getName 2009-05-14 23:28:27 -04:00
mark_story
9b9b1fbf21 Updating doc block 2009-05-14 23:25:52 -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
305104140c Adding tests for __interactive 2009-05-14 22:36:04 -04:00
mark_story
8a5d6cae77 Removing junk 2009-05-14 22:19:43 -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
3c08369e3a Adding bake model template.
Adding tests for bake model.
2009-05-13 23:36:13 -04:00
mark_story
333713e978 removing whitespace. 2009-05-12 22:01:27 -04:00
mark_story
15fb1a711a Updating TemplateTask adding test case and test object file. 2009-05-12 22:00:30 -04:00
mark_story
3a36979a21 fixing doc block 2009-05-12 21:35:06 -04:00
mark_story
a38233e75d Updating FixtureTask and FixtureTask test to use TemplateTask 2009-05-12 21:26:37 -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
ef519621b4 Adding tests for doAssociations 2009-05-10 12:11:20 -04:00
mark_story
6be70c3cfa Adding test coverage for inOptions. 2009-05-10 11:01:15 -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
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
bb2f6b2ef5 Consolidating $useDbConfig to $this->connection.
Updating test cases.
2009-05-05 00:10:24 -04:00
mark_story
f4dc4bc1ed Adding test cases to FixtureTask.
Removing useless param.
2009-05-04 23:08:15 -04:00
mark_story
e21cc3db72 Adding test cases for bake()
Adding support for -connection param
Adding partial support for -plugin param
Separating file writing and code generation functions.
Updating help()
2009-05-03 21:43:22 -04:00
mark_story
40ebdf8aac Adding fixture all command.
Fixing errors with maxlength and timestamp fields
Adding return for ModelTask::listAll()
2009-04-29 22:50:43 -04:00
mark_story
2b87be1d7c Updating FixtureTask help
Adding test case for FixtureTask
2009-04-29 22:40:49 -04:00
mark_story
80287223f1 Additional Test for ModelTask 2009-04-29 22:25:42 -04:00
mark_story
aad2bd702d Adding test case for Model Task 2009-04-29 22:17:08 -04:00
davidpersson
0ee8889e6d Adding Shell::nl method
Updating out to not use newline feature of SD::stdout
Updating out, err and hr methods to utilize the new method
Rewording parameters of out, err and hr
Changing handling of multiple messages
Adding tests for nl, hr and error
Updating tests for out and err
Updating docblocks
2009-04-24 21:04:07 +02:00
davidpersson
4faa9d3b21 Adding newline param to Shell::err
The signature of ::err is now identical to ::out
Adding tests for ::err
2009-04-16 10:59:53 +02:00
davidpersson
fd7d6718a1 Updating tests to not affect other ones when run from a group
Adding NoCrossContamination group
Shortening group class names
Renaming lib_controller group
Updating test imports to include the core AppController by default
Some cosmetics




git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8123 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-21 23:55:39 +00:00
davidpersson
3c3b852099 Changing package of tests from "cake.tests" to "cake".
Moving tearDown et al. to the top of each test class.
Adding short descriptions to docblocks.
Adding missing docblocks.
Removing unnecessary blank lines and whitespaces.
Updating labels of test groups.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8116 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-18 17:55:58 +00:00
davidpersson
b184d0705d Adding tests for ShellDispatcher, Shell, ExtractTask and TestTask.
Adding console test group.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8096 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-13 16:06:18 +00:00
mark_story
2a36e5f8cd Adding Test case for TestTask
Fixing path appending issues caused by continual baking.
Fixes #6099

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8027 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 14:22:11 +00:00
nate
440c629931 Fixing glob() handling in extract shell, added extract shell test, partial fix for #6044, code formatting changes in CakeTestCase.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8026 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 06:22:34 +00:00
DarkAngelBGE
df4a8bcd32 moving shell.test.php to correct place in order to make code coverage possible for it; changing some whitespaces in shell.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7838 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 10:41:52 +00:00