Commit graph

1262 commits

Author SHA1 Message Date
mark_story
4b1335797c Updated session lib test to use fixtures, fixes some of the errors in the test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7095 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 23:57:30 +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
mariano.iglesias
04b8270fb6 Adding tests to show use of bindModel with reset false and pagination in Containable, closes #4812
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7090 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 18:05:45 +00:00
gwoo
a7289ff89d updating cache engine to better deal with prefixes for multiple apps. Allows fully or partially overriding core settings from core.php. fixes #4810
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7089 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 17:35:56 +00:00
gwoo
09fae6203d fixing issue with references from latest component refactor. test case added
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7088 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 04:57:06 +00:00
mark_story
1bc9d198cc Updating skel/cake.generic.css to remove validation warnings. Added test icons to test suite.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7086 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-02 03:36:20 +00:00
mark_story
7820d639b8 changed column datatyping in __destroy() closes #4782. Updated session test to use session fixture.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7084 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 22:03:29 +00:00
mariano.iglesias
3cfa3132e4 Fix issue with test and precision of float numbers. Adding test to show use of quoteKey, closes #4806
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7083 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 21:22:59 +00:00
mariano.iglesias
4b2b8fcc1c Adding tests to show HABTM saving with custom model keys, disproves and closes #4791
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7082 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 21:04:30 +00:00
mariano.iglesias
7101b8d4cd Adding tests for grouping with Product model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7081 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 19:00:33 +00:00
mark_story
9bea02d518 Adding product fixture and product model for group by tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7080 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-01 18:26:25 +00:00
mariano.iglesias
768e0c748b Keeping index when setting validation errors for saveAll, fixes #4769 and closes #4462
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7079 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 22:01:47 +00:00
mariano.iglesias
29c784be15 Adding test for issue when group and order are specified for a find
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7077 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 21:29:37 +00:00
gwoo
73e926fea8 adding test to model, closes #4809
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7076 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 16:57:30 +00:00
nate
39feb3f7c1 Refactoring DboSource. Model array conditions must now have comparison operators on the left side, fixes misc bugs, updated core to reflect changes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7075 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 12:36:38 +00:00
gwoo
c57b5611a0 adding patch for Acl::allow(), fixes #4792, closes #4781
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7072 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 04:31:30 +00:00
gwoo
14df77c12d removing memory usage line that was usage in component test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7071 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 04:03:49 +00:00
gwoo
cf896eaa9b refactoring component handling, closes #4795, tests added. deprecated Controller::_initComponents();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7070 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 03:54:22 +00:00
mariano.iglesias
3a643bad92 Adding test for non existing layout when calling SessionComponent::setFlash, disproves and closes #4798
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7069 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 03:06:07 +00:00
mariano.iglesias
a94c890734 Adding test to show original associations working correctly, disproves and closes #4790
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7068 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-31 02:59:55 +00:00
joelmoss
d294e91d42 Fixing PHP error with $divOptions in FormHelper::input() when passing $option['div'] = false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7066 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 16:05:53 +00:00
joelmoss
03322a31d7 FormHelper::submit() now accepts alternative wrapping tags, instead of a div.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7065 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 15:44:39 +00:00
joelmoss
4dfe7333b7 FormHelper::error() can now be passed the tag to wrap the error message in.
FormHelper::input() can now be passed the tag to wrap the input element in; same applies to the tag that wraps the error message.
Corrected date format in Form test testMonth().


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7064 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 15:07:32 +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
DarkAngelBGE
f749143f5d enabling nesting of group tests in TestManager::addTestFile
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7060 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:27:56 +00:00
TommyO
ecc4347e25 Fixed bug for Authenticating against SMTP server. Added test case.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7058 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-29 17:26:43 +00:00
mark_story
78ff2ad4bd Implemented 'group' by conditions for model finds. Added tests from 'wluigi' Closes #2833
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7057 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-29 12:27:23 +00:00
AD7six
4bafc397f9 fixes #4761, tree behavior parameter array merge logic incorrect
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7056 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 16:02:31 +00:00
AD7six
26a31efbe5 fixes #4761, visibility in tree test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7054 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 15:26:29 +00:00
mark_story
ca48055ddb Added ability to specify cdata blocks and ignore special character stripping in RssHelper. Tests updated as well. Closes #4491
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7051 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-28 02:19:55 +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
a2b873d0f8 adding test to schema, closes #4731
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7048 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-27 18:44:55 +00:00
mark_story
78e534b73b Refactored month() to take monthNames in the options array. Added options descriptions to several doc blocks. Tests updated.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7047 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-27 00:07:00 +00:00
gwoo
13a717aed6 updating Cache engines, fixes #4759
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7045 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-26 19:24:09 +00:00
nate
9eeecc8755 Adding content stripping fix for email component, fixes #4753
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7043 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-25 18:08:55 +00:00
TommyO
c9c3983296 Additional email component tests. Fixes for existing tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7042 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-25 15:39:31 +00:00
mark_story
dcdfdb3cbe Updated Auth redirect url generation. Now correctly retains passedArgs and namedParams. Added tests for this behavior. Closes #4750
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7040 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 22:43:19 +00:00
mark_story
9da3e638df Applied Enhancement submitted by 'chjunior', month display can be set to numbers or translated text. Closes #4327. Tests also updated.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7039 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-24 04:00:26 +00:00
mariano.iglesias
060bbf1caf Adding test to show proper use of allowEmpty on validation rules, closes #4749
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7036 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 20:46:42 +00:00
nate
6a99a6ba60 Changing Model::getColumnType() to return null for unknown fields, allowing for type introspection, updating docblock for Model::hasField(), fixes #4751
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7035 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 20:40:50 +00:00
AD7six
fdc26e38aa adding test case to address #4747
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7032 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 17:46:37 +00:00
mariano.iglesias
9c722b6999 Improving field detection in Containable. paginate() now avoids sending recursive to find calls when it is not explicitly set. Adding more tests to Containable to show how to paginate, fixes #4746
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7030 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 16:12:14 +00:00
mariano.iglesias
88b16a1d6c Updating model test for slow DB connections
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7028 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 14:48:55 +00:00
the_undefined
54715db5dd Made DboSource::length return string for float-like values, added a bunch of tests, fixes #4739
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7027 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 07:09:16 +00:00
nate
c6e5ed8aba Adding test for ACL node creation with parent ID, disproves #4098
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7026 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 06:16:50 +00:00
nate
57473a4633 Fixing XML test for case where App.encoding is empty
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7025 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:53:49 +00:00
gwoo
deb972d13d fixing theme view test usage of error handler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7024 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:37:43 +00:00
gwoo
d5f71ccadf fixing view test usage of error handler
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7023 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:26:33 +00:00
the_undefined
52bae8a7bf Made form helper pick up field definitions outside the current context
Made form helper handle maxlength for float fields properly, fixes #4724


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7021 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:14:57 +00:00
nate
7402680cc1 Misc code formatting and whitespace fixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7020 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 05:11:41 +00:00
mark_story
6384da5b53 View::beforeLayout and View::afterLayout now implemented closes #4722
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7018 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 02:16:36 +00:00
nate
f2ea3c8bb0 Refactoring DboSource to use Model in order to properly quote values by column type, correcting serial integer schema generation in DboPostgres, fixes #4702, refactoring TreeBehavior to use DboSource::calculate(), fixes #4725, updating docblocks, fixing DboSource test to be database-agnostic, misc. whitespace fixes, updating DboSource test to reflect new quoting rules
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7015 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 19:05:37 +00:00
the_undefined
e256d4a814 Applied patches by 'asavoy', fixes #4707
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7014 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 18:18:23 +00:00
mariano.iglesias
62bf371aec Allowing paginate to override the default find type for fetching records.
Set the find type as the first string parameter in your paginate settings:
var $paginate = array('popular', ...);
Check the test case for an example.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7013 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 17:07:42 +00:00
gwoo
aaab0306aa removing exit() and replace with $this->stop();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7012 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:57:46 +00:00
mariano.iglesias
ac9a96663d Adding tests to paginate() to make sure extra parameters cannot be defined via URL
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7011 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:42:56 +00:00
mariano.iglesias
8f92952d46 Allowing paginate() to send any extra parameters to the find call, and updating it to use new find notation.
Updating test in Containable to reflect how to properly use pagination: just set your 'contain' setting as you do with other pagination parameters, for example:
var $paginate = array('Article' => array('conditions' => ..., 'contain' => array( ... ));
and then do your normal paginate(), without having to set reset to false nor call resetBindings(). Check the test case for an actual example.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7010 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 16:25:10 +00:00
AD7six
d1d06eb4fe correcting invalidLftRght test to not attempt to set not-null fields to null
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7009 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 15:33:41 +00:00
mariano.iglesias
ea94b57ec1 Properly setting non-array option overrides, fixes #4732
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7008 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 14:22:12 +00:00
mariano.iglesias
340496079f Removing countReset option from Containable as pagination support will be handled from paginate
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7006 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 13:43:23 +00:00
nate
5def68bf30 Updating Model test to reflect TreeBehavior changes, adding association support to Model::getColumnType()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7005 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 12:56:41 +00:00
joelmoss
17c542d76d HtmlHelper::tableCells() now accepts a fifth parameter $continueOddEven, which by default is true, thereby not affecting current behaviour. When false, $count will not be static, and will therefore start from zero, giving correct odd and even values if they are passed. Fixes #4222
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7003 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 09:13:23 +00:00
joelmoss
9b514352dc Set::combine() now returns an empty array if first passed var is empty. Fixes #4709 and #3784
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7002 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 08:21:08 +00:00
nate
fbdb4af2c1 Supressing header exceptions in RequestHandler test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7001 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 03:01:22 +00:00
mark_story
62d4397d4a All components group works. Acl test and Auth test were clobbering each other.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7000 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:46:24 +00:00
nate
6c5f98ddec Fixing ACL interface class names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6999 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:00:36 +00:00
mark_story
1523020ea1 Updated tests on DB_ACL coverage up to 88%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6998 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 00:56:46 +00:00
gwoo
2558705e14 closes #4708, test case added to show Auth supports routed login actions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6997 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 23:45:58 +00:00
AD7six
032faec107 Removing accidentally committed debug code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6996 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 20:04:57 +00:00
AD7six
c0ff1b6fd1 adding updated tree test with extra checks on recover
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6994 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 19:57:51 +00:00
mark_story
f7438da72e Implemented patch from 'johnathansnook' closes #4496 Form::inputs now allows for fieldset classname to be set. Updated tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6991 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-21 03:57:35 +00:00
AD7six
bb9be60c1e updated tree behavior tests to be db independent.
Related primarily to changes to the tree behavior to allow Postgre and sqlite to function correctly.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6990 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 18:58:43 +00:00
mariano.iglesias
61415e2449 Allowing children when Model(field1, field2, ...) is used as key, fixes #4690
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6989 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 15:21:38 +00:00
gwoo
f65f2fd3bc fixes #3415, notices in router
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6988 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 15:00:00 +00:00
the_undefined
50a18a09c4 Added conditional table dropping on test case start
Removed if exists statement from mysql driver


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6986 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 14:12:01 +00:00
nate
4eedbd536c Rolling back table-drop fixture change until it can be made compatible with all databases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6985 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 13:15:38 +00:00
mark_story
2a0f5dd041 Fixed View::element(). If CacheHelper is added to the $helpers array in lowercase, it caused undefined var errors fixes #4705
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6984 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 12:22:46 +00:00
nate
092d51b4f1 Upating RssHelper test to reflect changes in XmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6982 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 04:55:04 +00:00
mark_story
f2231a6bcf Added inList to Validation closes #4429
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6981 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 03:22:51 +00:00
the_undefined
aa00e47fe8 Added countReset option that defaults to false, fixes #4694
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6979 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 01:01:11 +00:00
mark_story
44470c2e72 Merged View::renderElement() and View::element() closes #4569
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6978 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:56:17 +00:00
the_undefined
1224845967 Found the bug and fixed it, closes #4693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6977 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:50:06 +00:00
the_undefined
e1e71b6d93 Added test disproving a bug report, see #4693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6976 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:34:42 +00:00
mark_story
ed56a8e637 Added ability to define end user time offset to TimeHelper closes #2656
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6975 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 00:24:00 +00:00
mark_story
0d9ca660b0 Implemented Enhancement: closes #4670
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6974 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 22:05:42 +00:00
mark_story
971c35708f Updated CakeSession test, added fixture for session tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6973 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 21:52:49 +00:00
mark_story
f2eab6ef59 Implemented enhancements, closes #4059 and #4584
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6972 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 21:01:02 +00:00
DarkAngelBGE
45bccc5215 optimization refs #3415
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6970 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 20:36:39 +00:00
mariano.iglesias
5459b92f02 Ensuring that a valid maxlength value is used for inputs, fixes #4691
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6965 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 12:17:37 +00:00
mariano.iglesias
1448d95478 Allowing spaces as part of the inner field declaration, fixes #4690
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6964 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 12:04:41 +00:00
the_undefined
c269f5c383 Applied patch by 'adj', closes #4637
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6957 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 07:10:15 +00:00
the_undefined
c3d266e27d Applied patch by 'GreyCells', closes #4629
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6956 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 07:10:06 +00:00
the_undefined
3204ced2ed Made TextHelper::highlight utf8 compatible, fixes #4602
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6952 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 06:54:53 +00:00
the_undefined
fa410d207c Implemented CakeTestFixture::truncate, closes #4459
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6951 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 06:29:49 +00:00
the_undefined
0662d595cb Added postal code verification for belgium, fixes #4192
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6948 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 05:38:22 +00:00
mariano.iglesias
cc0e7a6c42 Changing forward slash for system slash. Releasing lock on created file in test, fixes #4684
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6944 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 04:45:39 +00:00
the_undefined
d184aa0b56 Fixed failing dispatcher test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6943 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 04:40:41 +00:00
mariano.iglesias
e54b98e91b Bringing DboSource coverage to 77%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6942 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 04:24:40 +00:00
the_undefined
fbbde864f7 Added $invalid parameter to format function, closes #2709
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6941 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:58:34 +00:00
the_undefined
e5d7f5279e Merged relevant test cases from 'alkemann' into tree test and made them pass, fixes #4493
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6939 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:03:44 +00:00
mariano.iglesias
775707838e Fixing docbloc in Containable, fixing issue where no notices and invalid bindings were throwing PHP warnings, added tests, fixes #4683
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6938 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:40:13 +00:00
the_undefined
71790792d0 Applied patch by 'preloader', closes #4561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6937 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:31:26 +00:00
mariano.iglesias
943ede837c Fixed DboSource test to use table prefixes based on the DB connection.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6935 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:34:13 +00:00
the_undefined
521986b27f Fixed problem with boolean values passed into connectNamed
Added documentation


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6934 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:08:49 +00:00
the_undefined
847811701c Fixed Router::connectNamed, added enhanced named parameter control, closes #4451
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6933 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:52:28 +00:00
mariano.iglesias
35391deff5 Renaming configs to config and fixing Acl test.
Bringing Configure test coverage up to 82%, the best that can be achieved without calling __loadBootstrap(true) which will cause constant collision.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6932 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:51:29 +00:00
nate
b7fbf8f080 Refactoring database transaction handling, fixing Model test for SQLite, all tests now pass
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6931 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:19:08 +00:00
nate
fe3f899f46 Refactoring CakeTestCase so that skipIf() can also be called from within tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6930 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:17:28 +00:00
mariano.iglesias
f900ecc1ef Removed unneeded function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6929 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:56:00 +00:00
mariano.iglesias
660d5bb804 Allowing CakeTestCase::assertTags() to receive strings as expectation.
Removing default value in AjaxHelper::options() and AjaxHelper::__optionsForAjax() since it always require a parameter.
Using Object::stop() instead of exit() in AjaxHelper::afterRender().
Bringing AjaxTest coverage to 88%

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6928 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:51:30 +00:00
DarkAngelBGE
032990a364 bringing the validator to 93% coverage,
adding default regexes for Validator::phone(), Validator::postal() and Validator::ssn() if no default regex is supplied, but also no country

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 15:47:35 +00:00
DarkAngelBGE
45ed8ffeff bringing the file class to almost 90% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6926 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 14:48:48 +00:00
TommyO
291781ab5a Added new tests, failing on setup() mangles configuration, onError never triggered, find callbacks not triggered in recursive model finds
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6925 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 12:49:57 +00:00
DarkAngelBGE
010a083d1c bringing the folder class to 84% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6924 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 11:26:00 +00:00
DarkAngelBGE
f26d9b388e adding numerical test case refs #4589,
adding tests for DbSource->length,
fixes #4150,
adding tests for DbSource->buildIndex(),
adding tests for DbSource->buildColumn(),
adding test for requestAction using a plugin,
adding DboSource->introspectType fixes #4224, refs #4589, 



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 09:22:42 +00:00
nate
6bed503b56 Refactoring schema handling for SQLite and Postgres drivers. Non-primary key indexes are now created properly. Fixed testing bugs in db drivers.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:42:36 +00:00
the_undefined
e1fc6ad5fd Refactored parts of String::insert into String::cleanInsert
Added a html clean method and test cases


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6921 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:11:51 +00:00
the_undefined
550b85fdbb Improved Inflector::slug, closes #4678
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6920 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 05:03:12 +00:00
nate
8313fef72d Changing recursive setting in Auth user lookup query, allows $userScope to use joins, fixes #4665
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6919 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:49:54 +00:00
mariano.iglesias
a33cfd0b98 Added Containable behavior, a mix of the original Containable and Bindable behavior.
Allows find operations to define restrictions on what models to get based on the 'contain' parameter, including ability to override binding settings on the fly. Go through the test cases to get a crash course about some of the available functionality.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:36:09 +00:00
mark_story
f011839cfe Update dbo_adodb.php. Passes 452 tests in model.test
fixes #4133

Added test for dbo_adodb as well

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 00:20:24 +00:00
AD7six
72e54d4780 adding test case to verify permission inheritance functions correctly. Fixes #4464
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6913 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 19:41:32 +00:00
joelmoss
64e68c9b7c Text helper highlight method now handles HTML tags correctly. Closes #2242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:45:24 +00:00
AD7six
ec12b91657 updated acl test debug method to display individual permissions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6911 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:23:05 +00:00
AD7six
56ce3c0f1c adding debug function to acl test case to aide checking permissions whilst writing/debugging tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6910 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 17:33:08 +00:00
mariano.iglesias
05047a90b0 Making Model::resetAssociations public and changing tests that use it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6909 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 16:23:46 +00:00
gwoo
bc6a8e03b5 fixes #4671, skip DboOracle tests when driver is not set. Clean up other dbo tests to be consistent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6908 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 13:59:29 +00:00
phpnut
10d555d5e2 "Adding additional tests for I18n class.
Removed unused code from the class.
Fixed use of invalid translations in a po file"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6907 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 06:05:08 +00:00
mark_story
926b88a53a Updated dispatcher test for case described in #4660
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6906 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 03:52:08 +00:00
phpnut
638b06ff85 "Adding test coverage for I18n class.
Adding ability to change translations on the fly
	Example: Configure::write('Config.language', 'locale');
Same setting can be used to define you own locale
	Example: Configure::write('Config.language', 'somename');
Added ability to set additional directory paths for locale directory
	Example: Configure::write('Locale.path', DS . 'directory'. DS . 'locale');
Fixed merging of core translations, if present."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6905 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 00:48:34 +00:00
phishy
518f26a269 added test case for DboOracle and two regression tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6902 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:23:30 +00:00
gwoo
8a236492a0 adding Object::stop(), updating auth and auth.test to use
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6901 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:23:00 +00:00
DarkAngelBGE
e42076b9c2 adding CLI exit code to testsuite shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6899 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:00:46 +00:00
nate
d9a7170808 Adding validation message fixes for Model::saveAll() and hasOne associations, fixes #4561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 06:03:33 +00:00
nate
0f1e075d68 Adding fix for Model::saveAll() with 'validate' => 'first' and hasMany records, fixes #4387, adding test cases to disprove #4494
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6897 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 05:31:14 +00:00
mark_story
5893fd3669 Added additional test using ajaxLogin with Dispatcher. Currently fails.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6896 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 01:33:53 +00:00
gwoo
1623fa89f8 updating auth, fixes #4417 ajaxLogin rendering
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6893 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 19:20:13 +00:00
gwoo
3b524b70d5 removing icons from test suite
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6892 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 18:18:46 +00:00
phpnut
0cc0580fff "Fixing code CodeCoverageManager so code coverage can be tested when cake core is outside of the ROOT path or set in the php.ini
Cleaned up code structure."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6891 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 17:27:57 +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
TommyO
52037d15e4 Allow afterSave() callbacks to modify value of a data field, as per ticket #2465\nNecessary tests included
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6889 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 15:37:55 +00:00
the_undefined
ab0a607189 Refactored Set::reverse and tweaked the expectation schema for consistency, fixes #4643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6888 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 14:48:49 +00:00
nate
68234dd529 Adding tests for HABTM unique key, disproves #3859
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6887 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 07:08:16 +00:00
the_undefined
bf107d1886 Fixed admin routing redirect in AuthComponent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6886 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 07:06:22 +00:00
nate
6614bc96ab Adding tests for tinyint(1) -> boolean typecasting in DboMysql, closes #4568
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6885 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 06:42:31 +00:00
phpnut
ffd272901c "Setting missing props"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6884 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 06:00:12 +00:00
phpnut
896de31580 Fixing svn props on files.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6883 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:26:40 +00:00
nate
9d3f601bbc Adding tests for Model::updateAll() using field calculations, disproves #4052, refactoring tests to work on Postgres
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6882 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:17:23 +00:00
the_undefined
fa0325b68f Added Node / Dependency Fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6881 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:14:36 +00:00