Commit graph

2079 commits

Author SHA1 Message Date
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
fd7cf5e5e6 Adding test cases for boolean and boolean-ish values. Fixes false being converted to '' when using Xml::toString().
Fixes #6478

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8206 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-30 01:14:20 +00:00
mark_story
8c7883fe3e Fixing camel cased methods in checks for allowedActions in AuthComponent under PHP5. Normalizes to lowercase method name. Fixes #6142
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8205 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-30 00:25:09 +00:00
mark_story
6a34c9ef31 Fixing Model::saveAll() PHP4 compatibility. Minor API change in __save(). __save() no longer takes a model instance as the first parameter. Because of Model implementation details in PHP4 this caused broken references. Fixes #6389, #6223
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8204 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-27 15:25:07 +00: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
fd818bc493 Applying patch from 'mulleto'. Fixes plugin view file location with CamelCase plugin names. Test cases added.
Fixes #6334

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8202 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-24 22:02:00 +00:00
mark_story
16eb51e91c Adding ControllerMergeVarsTestCase to more extensively test merging of vars in Controller::__mergeVars.
Fixing issue where components declared in AppController would get doubled settings if no components were declared in subclasses.
Fixes #6459

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8201 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-24 18:09:14 +00:00
mark_story
3e8e7a2a6f Adding tests to Component.test. Disproves #6459
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8200 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-21 15:24:09 +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
mark_story
1ea5f94c29 Updating JavascriptHelper::escapeString to properly encode utf8 characters as per the JSON spec.
Test cases added, with comparisons to json_encode()
Fixes #6400

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8198 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-17 01:59:41 +00:00
gwoo
88e0cfa2f8 fixes #6427, default datasource not loaded when ds is specified
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8197 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-16 21:35:21 +00: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
jperras
6064019339 Refactoring model.test.php for 100 col display.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8192 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-10 03:00:38 +00: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
DarkAngelBGE
d9489b942b Removing duplicate START TRANSACTION sql execution in mysqli environment, fixes #6422
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8191 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-06 15:41:33 +00: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
2c1b7fc24e Adding nullish value handling for date, datetime, and timestamp column types to DboPostgres. Empty string values now return instead of "". Fixes #6386
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8190 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-05 02:43:08 +00: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
b055db19f7 Increasing Model test compatibility with SQLite and Postgres
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8188 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-04 00:37:27 +00:00
gwoo
0ea02c5a94 Merge branch 'master' into 1.3 2009-06-03 10:00:56 -07:00
mark_story
f983340d21 Changing setUp() and tearDown() to startTest() and endTest().
Fixing test failures when app/controllers/pages_controller.php or app/views/pages/home.ctp was present.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8187 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-03 16:23:35 +00:00
mark_story
7401b0c70f Updating Session path handling to fix cases when path = ''.
Test cases added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8186 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-03 16:22:00 +00:00
gwoo
303bc0fc89 fixing up some tests. pretty much all greens for me. 2009-06-02 17:21:15 -07:00
gwoo
5a45c15d9d merging 1.3-session 2009-06-02 14:52:14 -07: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
jperras
d2b4995e43 Updating Model::deconstruct to handle db expressions correctly. Fixes #6372; thanks to mattcurry for the patch.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8185 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-02 03:23:15 +00:00
mark_story
a9bbae31ee Fixing primary key column length in DboSqlite. UUID primary keys now return defined length.
Test cases added for describe()
Fixes #6412

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8184 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-02 03:03:51 +00:00
gwoo
2842fe7021 fixes #6401, Session path on IIS
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8183 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-01 16:52:05 +00:00
mark_story
9aa64ef564 Ensuring that 'ext' param added by RequestHandler does not end up as a queryString parameter in Auth.redirect.
Adding test case.
Fixes #6211

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8182 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-06-01 00:01:58 +00:00
mark_story
50f4d91873 Adding test case to disprove #6411
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8181 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-30 19:12:15 +00: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
jperras
a6017e6f6a Updating code coverage manager to work with application-level datasources.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8179 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-28 17:44:41 +00:00
mark_story
f0752feeec Adding patch from 'burzum'. Fixes ambiguous field sql error when joining two trees with a defined scope.
Test cases and fixtures added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8178 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-26 17:17:57 +00: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
a44e69e47f Adding test case to disprove #6387
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8176 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-22 02:00:21 +00: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
jperras
4f2d65943f Fixing form helper checkbox hidden input generation for disabled fields. Thanks to 'trevorsg' for the patch & test case.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8173 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-14 03:26:53 +00: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
8c243ee731 Applying patch from 'mete0r', adding tests for Scaffold variable setting. Fixes #6361
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8172 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-13 01:00:38 +00: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
029f422953 Adding patch from 'CSdread_' Adds test coverage to Model::getAssociated()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8168 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-08 02:39:00 +00:00
jperras
2e2aa0cd3a Cleaning up HttpSocket public/protected api; all protected methods are now prefixed with an underscore. Refactored associated tests. 2009-05-07 14:49:21 -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
gwoo
d2667c0e6f merging master into 1.3 2009-05-04 16:06:08 -07:00
gwoo
6535e6225c merging 1.2 2009-05-04 15:57:10 -07:00
nate
8369a8f2d8 Sanitizing path in Dispatcher::baseUrl(), fixes #6336, misc. whitespace fixes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8165 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-04 20:36:22 +00:00
gwoo
be7ade3a4c Support for non-valid cookie values, fixes #6327
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8164 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-05-04 20:13:10 +00:00
the_undefined
94c01ac7b4 Support for non-valid cookie values, fixes #6327 2009-05-04 21:53:39 +02: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
gwoo
15518b8c9a merging 1.3-misc into master 2009-05-01 14:05:46 -07:00
gwoo
d4003c17c4 Merge branch '1.3' into 1.3-inflector 2009-05-01 11:09:34 -07:00
gwoo
54a3118d34 adding tests for map param on Inflector::slug. cleaning up. 2009-05-01 10:34:19 -07:00
gwoo
67d45cb28b updating headers on inflector and adding map param to slug(). added more comments to app/config/bootstrap.php 2009-05-01 10:03:30 -07: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
gwoo
db71202aac Merge branch '1.2' into 1.3 2009-05-01 08:26:02 -07: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
renan.saddam
f25cf63206 Adding missing test from last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8162 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-29 16:39:42 +00:00
renan.saddam
975ddaa4be Fixes #6135: Primary Key detection and load record fixtures on mssql. Tests added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8161 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-29 16:26:03 +00:00
renan.saddam
48386b791f Fixing cake_test_fixture and dbo_mssql tests. Refs #6135.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8159 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-28 22:20:04 +00:00
nate
9f15226e46 Fixes #6318: Incorrect whitespace handling/parsing of XML documents
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8158 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-28 13:23:37 +00:00
mark_story
c8cf1a2c5b Updating __mergeVars to correctly merge parent and child component configurations.
Applied patch from 'neilcrookes'. 
Test case added. Fixes #6325

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8157 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-28 01:32:20 +00:00
mark_story
912f6589d5 Partial Revert "Adding optional param to remove colon on methods. Allows use inside"
This reverts commit b29e130606176e4ad4d834fdf42746b3c4085686.
2009-04-26 23:24:39 -04:00
mark_story
e990c5ba37 Adding optional param to remove colon on methods. Allows use inside
object literals.
2009-04-26 22:53:26 -04:00
mark_story
b68c78fc0f Fixing lost querystring params when user request without a session is performed. Test case updated. Fixes #6211
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8156 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-25 02:16:05 +00:00
jperras
8bb11e49d7 Fixing counterCache behavior when updating an existing record's counterScope value. Thanks for the patch, mattcurry. Fixes #6270.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8155 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-25 01:17:21 +00:00
jperras
97abf84770 EmailComponent:: now is set to null after calling EmailComponent::reset(). Test cases added; fixes #6314.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8153 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-25 00:01:57 +00: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
jperras
650d1e7c78 Removing hard coded HELO hostname of 'cake' in EmailComponent; better compliance with RFC-821 3.5. Test cases added. Fixes #6264.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8152 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-24 18:20:51 +00:00
mark_story
9754926d02 Merging with self. 2009-04-24 13:44:52 -04:00
mark_story
82cb895f50 Correcting test case simulation. Closes #6211
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8151 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-23 17:26:56 +00:00
gwoo
fd0c39fcc6 fixes #6293, Deleting non-existing record causes save() to fail. Thanks to msadouni for the patch and test!
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8150 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-22 16:47:34 +00:00
mark_story
6e91ee7ad4 Adding tests to disprove #6306
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8148 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-20 07:36:26 +00:00
davidpersson
bbfee7ba17 Updating Xml class to always use #document as the very root node and to create a node below it if the root option is set.
Adding test. 
Fixes #6294

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8147 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-17 13:26:07 +00:00
renan.saddam
bd7bd5d891 Fixing issue when generating textarea with null value.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8146 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-16 18:12:01 +00: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
gwoo
ec18aac4ab Merge branch 1.2 into 1.3 2009-04-15 15:16:01 -07:00
mark_story
8db4fe682b Allowing name attribute to pass on to hidden field in FormHelper::radio().
Fixes inconsistency with checkbox().  Test case added.
Fixes #6260

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8145 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 17:18:01 +00:00
mark_story
377108f930 Adding tests to show correct usage of form::create() with querystring params. Closes #6278
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8144 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 02:29:50 +00:00
mark_story
32107f5fba Fixing test broken in [8136]. Adding Configure::write() to prevent fails when running helpers as a group.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8143 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-15 02:14:04 +00:00
mark_story
97652231a0 Fixing RequestHandlerComponent::prefers() with array input. Test case updated. Fixes #6290
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8141 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-14 13:16:25 +00:00
jperras
cadc64c7b6 Removing EOF newlines. 2009-04-13 23:53:10 -04:00
jperras
740c712fb5 Refactoring core session library to use a proper Session model instead of hard-coded SQL. 2009-04-13 23:50:44 -04:00
jperras
066629d566 Removing hard-coded 'id' field from Model::_prepareUpdateFields. Fixes #6274.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8139 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-13 14:15:58 +00:00
mark_story
3a3e003982 Adding drop() to mootools. 2009-04-11 23:37:24 -04:00
mark_story
1d5e3150a2 Adding drag() to mootools. 2009-04-11 23:09:58 -04:00
mark_story
02bb4e71f3 Adding drag and drop() methods to prototype.
Adding test for option pass through on _mapOptions(). Ensures that
correctly named options do not get munged.
2009-04-11 00:01:40 -04:00
jperras
199d446ba7 Addding additional English irregular singularization/pluralization rule 'niche' => 'niches'. 2009-04-10 14:47:17 -04:00
the_undefined
bf2829a896 Fixed bug related to the order in which some replacement take place
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8138 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-09 13:15:43 +00:00
mark_story
646cfd7a83 Adding drop() to jquery.
Adding testcases.
Fixing doc blocks.
2009-04-08 23:57:32 -04:00
mark_story
0269994842 Adding Drag() to jquery 2009-04-08 23:31:17 -04:00
mark_story
9491e4632d Applying patch from 'SkieDr' to fix custom find type pagination. Removes parameters from exiting paginate(). Test case added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8137 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-07 14:56:30 +00:00
mark_story
49f689a9ce Updating mootools and prototype sortable implementation. 2009-04-06 21:56:20 -04:00
mark_story
c6c7630d8f Fixing tests for php4 compat. 2009-04-06 21:24:14 -04:00
mark_story
f74408df0a Updating request() in prototype. 2009-04-06 00:39:16 -04:00
mark_story
00f3c6f25d Updating prototype engine and test case for request() 2009-04-06 00:03:19 -04:00
mark_story
5f7abae48c Fixing request() callbacks. Starting test for prototype 2009-04-05 23:49:09 -04:00
mark_story
5f4cdf91ac Fixing AjaxHelper::dragOptions to match scriptaculous docs.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8136 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-06 00:57:46 +00:00
mark_story
5c4f838f5a Adding buffer flush to ajax helper test. Test suite menus now properly display.
Fixing Drag options.  Adding test coverage. Fixes #6266

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8135 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-06 00:45:53 +00:00
mark_story
d74e2d1a73 Fixing newline escaping for single quote strings, output now matches json_encode().
Test added, and old test fixed.
Fixing buffering issues, causing test suite menu to disappear when running JavascriptHelper Test case.
Fixes #6167

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8134 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-04 02:42:46 +00:00
davidpersson
392a6b195d Adding tests for Folder::copy and ::move showing that
skipping existing subdirectories is the intended behavior.
Disproves #6529.  Refs #6529.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8133 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-04-01 17:54:25 +00:00
mark_story
87c5a5da6a Fixing jquery::request() and update key.
Adding drag and drop test skeleton to mootools/jquery
2009-03-29 23:00:39 -04:00
mark_story
23423f2791 Updating request in Mootools 2009-03-29 22:08:49 -04:00
mark_story
a899af66da Fixing jQuery tests. 2009-03-29 21:52:44 -04:00
mark_story
f2578315e7 Refactoring how buffering works.
Adding buffer params to method calls.
Adding tests for buffer calls.
2009-03-29 16:10:04 -04:00
mark_story
8eeb00b66e Refactoring writeScripts to buffer() methods to clarify API. 2009-03-29 14:23:42 -04:00
mark_story
ba15d955e2 Updating effect in Mootools
Updating effects and effect test in Prototype
2009-03-28 23:46:23 -04:00
mark_story
768941baeb Adding each() to prototype engine 2009-03-28 18:11:16 -04:00
mark_story
55eafaf112 Adding domReady to prototype 2009-03-28 18:06:20 -04:00
mark_story
8cc5990e09 Adding event() and tests to prototype library 2009-03-28 12:08:34 -04:00
mark_story
da2361de14 Adding get() + tests to prototype 2009-03-28 11:50:57 -04:00
mark_story
977efe4e1d Fixing callback naming issues with mootools 2009-03-28 00:31:51 -04:00
mark_story
29b3a96cb2 Adding sort() to option parsing, makes testing easier. 2009-03-28 00:31:08 -04:00
mark_story
9708b2dc50 Adding sortables to mootools engine. 2009-03-28 00:15:05 -04:00
mark_story
d59a704fb1 Adding sortable to jQuery engine. 2009-03-27 23:44:57 -04:00
mark_story
574b0529ec Merge branch '1.3' into 1.3-jshelper
Conflicts:
	cake/tests/cases/libs/view/helpers/html.test.php
	cake/tests/cases/libs/view/helpers/js.test.php
2009-03-27 23:13:50 -04:00
mark_story
6551e2a45d Adding test for file input creation on hasOne relationship. Refs #6223
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8132 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-28 02:46:23 +00:00
davidpersson
5d23f46118 Adding tests to disprove #6236. Closes #6236.
Removing return from testWriteEmptyValues method to enable the test.
Updating CacheTest to revert settings changed in the tests.



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8131 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-26 20:40:45 +00:00
renan.saddam
9f0cbb00ce Adding tests to Session Save Handler callbacks. Refs #6229.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8130 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-26 14:25:47 +00:00
mark_story
0516fb2090 Enabling disabled attribute to be passed to hidden input when making checkboxes.
Test case added. 
Fixes #6226

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8128 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-25 16:58:29 +00:00
jperras
4439bc4f70 Fixing regression in PaginatorHelper. Adding tests for PaginatorHelper::sortDir, as well as fixing incorrect test for sorting with Model.field dot notation. Fixes #6218.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8125 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-22 18:59:53 +00:00
mariano.iglesias
364fe18208 Adding test to disprove issue. Closes #4693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8124 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-22 13:09:50 +00:00
jperras
0d8d8fa401 Adding tests for custom singular rules to Inflector. 2009-03-21 20:08:21 -04: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
mark_story
f15b793a4a Disabling caching of JS files by default. Requiring webroot to be
writable by default it not a good idea.
2009-03-19 22:05:06 -04:00
mark_story
0bd3cc97c1 Adding tests and features for script caching to files. 2009-03-19 22:02:18 -04:00
gwoo
643651fe56 Merge master in 1.3 2009-03-19 14:10:13 -07:00
jperras
641a48342b Adding test for Auth login redirect to url with query string parameters. Disproves #6211.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8118 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-19 18:37:54 +00:00
gwoo
5c53fcfcb9 fixes #6209, persistModel and undefined $Behaviors
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8117 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-19 18:27:49 +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
jperras
3853259f3f Adding test cases for Inflector::rule. 2009-03-18 01:43:53 -04:00
renan.saddam
76e0f17dbc Updating documentation to improve code completion
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8114 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 21:10:28 +00:00
gwoo
de5907326e fixes #6203, Model::invalidFields respecting Model::whitelist
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8113 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 18:19:12 +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
0ead89639a Adding tests for Controller::redirect.
Proves #6200 is invalid. 
Making original tests more strict.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8110 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 14:07:26 +00:00
mariano.iglesias
a9062e2e02 Adding new email validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8109 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 12:54:25 +00:00
mark_story
d787ec3720 Moving writeCache and getCache to JsHelper.
Adding drag, drop, sortable stubs.
Adding control of caching to JsHelper.
Refactoring tests.
2009-03-15 23:42:25 -04:00
jperras
70e0316cd2 Renaming schema.php to cake_schema.php. Modifying relevant App::import calls. 2009-03-15 22:22:18 -04:00
mark_story
91903a4dec Adding request() to mootools. 2009-03-15 22:15:22 -04:00
jperras
527b1f9cc8 Renaming libs/session.php to libs/cake_session.php . Modifying relevant App::import calls. 2009-03-15 22:07:12 -04:00
mark_story
e237eec343 Fixing event stopping in mootools 2009-03-15 21:51:00 -04:00
mark_story
eea1fa576c Refactoring quote style in jquery engine 2009-03-15 21:44:40 -04:00
jperras
e651c77bcf Renaming behavior.php to model_behavior.php. Modifying associated App::import calls. 2009-03-15 21:17:08 -04:00
mark_story
87d68e5029 Switching quote styles in mootools engine
Adding effect() and each() to mootools
Adding tests
2009-03-15 19:59:16 -04:00
mark_story
51a187f3e5 Adding Event binding to mootools engine 2009-03-15 18:48:34 -04:00
mark_story
a9da171e8c Removing multiple param for JsBaseEngine::get() it is not needed.
Adding get() to Mootools engine
2009-03-15 17:48:27 -04:00
mark_story
6b0058308e Adding skeletons for mootools engine 2009-03-15 17:32:04 -04:00
jperras
b22ddc11f9 Renaming socket.php to cake_socket.php . Changing associated App::import calls. 2009-03-15 16:52:27 -04:00
gwoo
056402efa7 moving checks for Set::extract() so that null will be returned when empty data is passed and classicExtract is expected.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8105 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 19:39:35 +00:00
davidpersson
93bf4fd0dc Fixing debug() test making it match truncated paths too.
Adding skip to uses() test to make running all tests in sequence more smooth.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8104 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 19:31:59 +00:00
mark_story
4b690237f0 Merge branch '1.3' of git@thechaw.com:cakephp into 1.3-jshelper
Conflicts:
	cake/libs/view/helpers/html.php
2009-03-15 13:20:43 -04:00
mark_story
e873bb5ab9 Adding querystring creation and option mapping to jquery engine.
More complex ajax requests can now be done.
2009-03-15 13:08:29 -04:00
mark_story
72866966b0 Updating parseOptions to allow safeKeys that do not need to be escaped
Useful for handling function callbacks in options arrays.
2009-03-15 12:26:12 -04:00
mark_story
ffdbec12fe Refactoring event() and adding ability to stop default events. 2009-03-15 12:10:46 -04:00
phpnut
e3b027288b Removing unused setting in Session configuration.
Fixed bug in CakeSession::watch(); that allowed setting multiple vars to watch and CakeSession::ignore(); would only unset the first one found.
Fixed errors being thrown when testing database sessions and the database was dropped before script process ended.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8103 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 00:27:25 +00:00
davidpersson
70f18af78d Adding Folder tests, fixes cases where ordered directory entries were expected
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8100 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 00:10:53 +00:00
mariano.iglesias
f1d25bcc20 Removing need to explicitly set IDs for Containable test, added in r6989
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8098 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-14 22:24:42 +00:00
mark_story
ae2114dcc1 Starting request() for jquery engine.
Adding _mapOptions so engines can map from abstract to concrete option
names.
Tests added.
2009-03-14 17:01:49 -04:00
gwoo
6cb8b3d286 Merge branch 'master' into 1.3.x.x 2009-03-14 13:57:18 -07:00
gwoo
198548092b cleaning up some Set::extract, adding tests for empty data and results. Removing some checks from Cache engine.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8097 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-14 19:56:28 +00:00
mark_story
72e1c73134 Adding effects and effects tests to JqueryEngine 2009-03-14 01:57:24 -04:00
mark_story
94c4e18112 Adding error feedback to base class methods 2009-03-14 00:10:43 -04:00
mark_story
20530f5ffb Adding test case for jquery engine
Adding some methods for jquery engine
Updating methods in base class
2009-03-13 20:50:31 -04:00
mark_story
518e567458 Fixing handling of true, false, null in object encoding. 2009-03-13 19:37:57 -04: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
nate
36d3540c19 Adding native-type-generation fixes for JavascriptHelper::object()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8095 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-13 14:49:00 +00:00
mark_story
a1a54a152b Adding methods to baseEngine
Removing file inclusion from JsHelper
Adding writeCache to JsHelper
Adding tests.
2009-03-12 23:48:19 -04:00
mark_story
91e47a6379 Adding scriptBlock() to HtmlHelper.
Adding tests.
2009-03-12 22:59:55 -04:00
mark_story
7ea7bd90c2 Moving script() method into HtmlHelper.
Moving tests.
2009-03-12 19:51:30 -04:00
gwoo
de6541f658 fixes #6189, paginator sort direction for associated fields of the same name
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8092 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-12 17:11:08 +00:00
davidpersson
149995c832 Adding tests for env, fileExistsInPath, debug, pr, params, stripslashes_deep and ife.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8091 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 23:46:10 +00:00
mariano.iglesias
fdbf102228 Fixing issue where disallowing plugin was not possible in PaginatorHelper, fixes #6159
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8090 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 19:24:06 +00:00
nate
92cc331341 Updating docblocks and code formatting in XML classes, adding test change to previous commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8089 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 04:09:35 +00:00
nate
4466c9f7b7 Reverting changes to Behavior so that all models use the same behavior instance, fixes #6038, refs #4408.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8087 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-11 00:06:41 +00:00
the_undefined
55e72bb749 Better support for regex matching, fixes #6184
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8086 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-10 20:20:32 +00:00
nate
cb95f13608 Correcting issue in String::insert() where 0 offsets were handled incorrectly, affecting issue where values were not properly quoted and inserted into conditions strings. Fixes #6163.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8085 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-09 20:03:02 +00:00
nate
eea46e7cc8 Fixing issue where calculated columns were getting quoted incorrectly. Test included. Reformatting code to be 100 characters or less.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8084 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-09 18:36:32 +00:00