Commit graph

4913 commits

Author SHA1 Message Date
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
def848f198 removing debug(); 2009-07-21 00:02:08 -04: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
025942e354 updating test header for 1.3 2009-07-20 10:06:13 -07:00
gwoo
0935eb0477 fixing up some broken tests 2009-07-20 09:59:16 -07: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
9f3a9e6d78 Adding test case for BakeShell and bake all 2009-07-16 08:51:06 -04:00
renan.saddam
7fd6cc52c2 Fixing issue with timeout when reading socket.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8233 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-15 19:17:41 +00:00
renan.saddam
3b872a218e Removing supressing errors from HttpSocket, using condition instead. Fixes #6483.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8232 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-15 19:15:14 +00: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
baea319122 Applying patch from 'Dremora' fixes JavascriptHelper::codeBlock() and blockEnd() bugs where content vanished due to incorrectly structured buffers. Minor behavior change in that codeBlock(null) no longer returns an opening script tag. The entire script tag is returned when blockEnd() is called.
Test cases updated and refactored.
Fixes #6504


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8231 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-14 17:11:46 +00:00
mark_story
02ed77ab20 Adding tests for calling RequestHandlerComponent::renderAs() twice.
Fixing issue where viewPath was not updated.
Fixes #6466

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8230 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-14 03:52:06 +00: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
DarkAngelBGE
44fa8d5fd0 Getting the time helper code coverage up to 99%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8228 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-11 16:45:29 +00:00
DarkAngelBGE
11c664177f git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8227 3807eeeb-6ff5-0310-8944-8be069107fe0 2009-07-11 15:36:45 +00:00
jperras
4f44a15470 EmailComponent::reset now empties out attachments array. Fixes #6498.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8226 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-10 00:07: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
fb6b16c467 Fixing empty time value handling in Model::deconstruct(). Both null and 00:00:00 are valid values now. Test cases added and refactored. Fixes #6488, #6018, Refs #5659
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8225 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-08 03:25:30 +00: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
DarkAngelBGE
9918583e7e Adding testcases to disprove #6111
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8224 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-06 22:38:37 +00:00
gwoo
508f0651a4 fixes #6492, removing use of define LC_MESSAGES due to inconsistency on different operating systems
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8223 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-06 15:30:04 +00: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
72546f3839 fixes #6455, adding define for LC_MESSAGES
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8221 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-05 15:02:03 +00:00
davidpersson
68d333d088 Applying patches by ADMad updating HtmlHelper and adding test. Adding missing properties in test case. Preventing bleed through in test case. Fixes #6490
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8220 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-04 22:04:40 +00:00
jperras
d2a6be21ef Splitting Model test into several classes for ease of testing. Creating new 'Database' test group for schema, db_acl and datasource tests. Model group test now only encompasses model & behavior test cases.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8219 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-04 19:23:22 +00:00
gwoo
7818eae206 fixes #6455, i18n locale message category bug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8218 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 15:54:26 +00:00
gwoo
f1a4352620 Merge branch '1.2' into 1.3 2009-07-03 08:24:42 -07:00
gwoo
f2b7a26be8 fixes #5710, HABTM - constraining unique ids, but removing non-unique
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8217 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 03:31:05 +00:00
mark_story
45a51ed809 Changing return of Model::deleteAll(). When no records are matched by the delete conditions return is now (bool)true as no records matching those conditions exist.
Test case added.
Fixes #6453

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8216 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 00:26:58 +00:00
mark_story
f79a68b2a6 Minor refactor of variable names.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8215 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 00:20:54 +00:00
gwoo
8971aad8bf closes #6413, scaffoldFields not working with add/edit methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8214 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-03 00:14:36 +00:00
gwoo
9e143bc335 fixes #6473, dot notation for sort in next/prev
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8213 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-02 23:48:10 +00:00