Commit graph

294 commits

Author SHA1 Message Date
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
davidpersson
06d3aee348 Fixing help not getting called
Adding tests
2009-05-02 23:51:57 +02:00
davidpersson
1d8f57d37a Second pass at dispatch refactor
Updating command dispatching
Fixing incorrect arg handling
Moving assignments out of conditionals
Updating tests to reset args
Adding dispatch task test
2009-05-01 18:46:23 +02:00
davidpersson
ebe1cd258a Updating shiftArgs to return shifted arg
If no args were available the method was returning false and now
returns null. If args were available the method was returning true it
now returns the shifted argument instead.
2009-05-01 03:47:33 +02:00
davidpersson
4b89dd2209 Refactoring ShellDispatcher::dispatch
Updating dispatch method to use is_a fixes #5318
Adding _getShell method to ease testing
Updating status code handling in the constructor
Adding and updating tests
2009-04-30 19:25:58 +02: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
gwoo
7f853532d9 updating ShellDispatcher to pass tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8112 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 23:08:39 +00:00
davidpersson
1c76e2e18e Fixing ShellDispatcher tests.
Order of paths should not be taken into account.
CONSOLE_LIBS constant is not guaranteed to hold a relative path only.
Matching expectations for the output of help command to show correct shortened paths.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8111 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 22:54:22 +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
renan.saddam
64c3d1ef95 Fixing issue when Dispatcher is getting plugin shell. Fixes #5740.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7871 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-13 00:33:53 +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
AD7six
3f2fa6929b changing tabs for spaces in comment block indentation
Removing address and replacing with cakefoundation url


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
f94bc3e4bc Adding Test case for Shell
Adding Comment Model to test_app
Fixing Plugin model loading in Shells, fixes #5566

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7726 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-10 02:14:57 +00:00
gwoo
3e8c2ad204 lets see if this closes #4982
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7263 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 06:05:15 +00:00
gwoo
cf25e1eb55 fixes #4982, params in console when baking app
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7261 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 03:50:11 +00:00
AD7six
f44c755475 Adding doc blocks to everything in the tests dir
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7094 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 19:22:55 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
gwoo
047c5fc040 refactor ShellDispatcher::parseParams(), fixes #4771
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7049 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-27 21:43:15 +00:00
gwoo
17379fff80 fixes #4495. updating cake.php and cake.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6890 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 15:40:35 +00:00
gwoo
18b627636b updating cake.test.php, fixes #4638. updating cake.php, fixes #4648 (with tests), updated Cache
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6870 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 19:43:55 +00:00
chartjes
d7817abf29 Added test case for ticket 4495, where when running "cake bake" on windows will result in the proper app directory being written to disk. Test currently fails when comparing root dir created by bake to the ROOT constant
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6863 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 01:10:24 +00:00
gwoo
b6a085b90e updating console/cake.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6860 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 23:13:31 +00:00
gwoo
1526a7647a adding console/cake.php test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6731 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-28 14:39:52 +00:00