Commit graph

1898 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
mark_story
c164be8c03 Enabling Asset.timestamp for HtmlHelper::image() making it consistent with Javascript::link().
Tests added.
Fixes #6170

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8078 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-06 04:40:50 +00:00
mark_story
18a7115385 Adding test to show proper escaping of escaped strings in Javscript::object() closes #6167.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8076 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-06 03:53:31 +00:00
jperras
79cba70758 Updating number helper to allow output of main currency symbol in the 'after' slot. Also added some basic i18n for NumberHelper::toReadableSize Fixes #6150.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8069 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-03 15:32:12 +00:00
mark_story
d9cbb85488 Adding test case for RequestHandler::beforeRedirect() when request is an ajax request. Ensures that requestAction() is properly triggered.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8068 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-01 06:11:03 +00:00
gwoo
b8d21c6c2c closes #6142, shows Auth works as expected with camelCased actions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8065 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-27 16:17:58 +00:00
jperras
b8feef23a8 Adding tests for Validation::notEmpty using ISO-8859-1 for App.encoding value, along with additional non-ascii utf-8 assertions. Disproves & closes #6101.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8063 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-26 16:48:00 +00:00
mark_story
0be4f64801 Adding test cases for URL encoded values. Refs #6134
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8062 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 20:01:55 +00:00
mark_story
af021cb4b2 Adding Html entity conversion to all urls generated by helpers, fixing potential for merged passedArgs to create xss vectors.
Adding integer cast in paginate() to page param. 
Tests added/updated.
Fixes #6134

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8061 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 19:51:41 +00:00
jperras
f20ccc745c Applying patch from 'phally' to update Set::extract to properly tokenize xpath selectors which contain hyphens (-). Fixes #6140
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8059 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 16:23:13 +00:00
mark_story
2a139b171c Applying patch from 'farhadi' correcting regular expression when using magic findBy and fields that contain findBy in them. Fixes #6138
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8057 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 03:22:31 +00:00
gwoo
779b367d3b adding some more test for dispatcher with array urls mainly used by request action. updated docblock
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8056 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 01:36:13 +00:00
mark_story
082ef2e4b0 Adding patch from 'mattcurry' Fixes Set::extract and parent selectors that with more than one element in the source array. Fixes #6043
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8055 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-24 03:01:06 +00:00
mark_story
b1d05222b8 Adding tests to show filtering of page param when using Controller::paginate(). Refs #6134
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8054 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-24 01:59:58 +00:00
the_undefined
74bf622866 Fixes #6071
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8053 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-23 15:19:33 +00:00
mark_story
31cd461d22 Correcting singluarizing of taxes, faxes, waxes, and pluralization of crisis in Inflector. Tests added. Fixes #6130, #6131
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8052 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-22 04:09:39 +00:00
mark_story
5dfa7bf46f Updating CakeTestCase::testAction() to respect $dropTables. Test case added Fixes #6123
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8051 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-21 15:05:17 +00:00
renan.saddam
52f4cd42db Fixing issue when Model::$translateTable is set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8050 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-19 13:45:51 +00:00
jperras
82a8599098 Adding test case for Model::saveAll for HABTM data with additional fields saved in join table.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8049 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-19 07:59:52 +00:00
TommyO
96e84c2e60 Fixes improper return from Xcache::clear();
Adds test
see #6110

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8046 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-18 18:07:06 +00:00
phpnut
8f2efce9ee Adding asserts forgot in last commit.
Fixes #6115

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8044 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-18 01:23:42 +00:00
phpnut
19ec3765dd Adding tests case to disprove #6115
Closes #6115

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8043 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-18 01:01:39 +00:00
gwoo
b62202f888 fixes #6117, wrong controller name in debug messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8042 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-17 23:32:15 +00:00
gwoo
9217a85281 adding router test and patch for plugin reverse routing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8041 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-17 18:26:37 +00:00
mark_story
27c321190e Applying patch from 'mcurry' Fixes Set::extract with mixed numeric and stringKeys. Tests added. Fixes #6072
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8038 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-17 04:41:30 +00:00
gwoo
5bb922323c fixes #6106, dispatcher plugin controller params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8037 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-16 18:39:09 +00:00
mark_story
6e6c5dc187 Removing getTests commited in [8033]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8036 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-16 13:52:03 +00:00
gwoo
b35de27de1 fixes #5866 and fixes #6069, bugs in dispatcher with plugins and params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8033 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-16 00:18:59 +00:00
mark_story
ce4fa20f3f Fixing escaping of fields in hasAny() also adding in correct model aliases.
Tests added. 
Fixes #6089

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8032 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-15 21:05:42 +00:00
gwoo
43ad3d76e5 updating code from [8024] [8025]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8031 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-15 20:13:14 +00:00
mark_story
a3f4c60139 Adding test case to prove #6069
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8030 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 19:39:52 +00:00
mark_story
9122ad72f7 Commit tests to prove #5866
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8029 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 19:34:25 +00:00
mark_story
fdd6ad856e Fixing issue in error handler, where URL was not escaped with debug == 0.
Tests added.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8028 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 14:56:00 +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
gwoo
712fea65ab updating code from [8024]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8025 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-13 01:11:00 +00:00
mark_story
e045e6826a Fixing Session from being added to components array twice.
Fixing greedy mergeVars with AppController.
Tests Added
Fixes #6091

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8024 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-12 13:36:20 +00:00
mark_story
2fc177869e Applying patch from 'mattcurry' fixes Basic authentication case sensitivity in HttpSocket. Fixes #6088
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8023 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-11 23:46:59 +00:00
TommyO
5026a6c89f Fixed memcache support for durations greater than 30 days. Fixes #6085
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8022 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-11 23:00:19 +00:00
mark_story
b1b67c811c Applying patch from 'ralph.marchildon' Fixes saving habtm data using 'with' data. Fixes #6077
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8021 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-11 03:53:04 +00:00
mark_story
d3ee6b31f1 Added conditional check for compatibility with MySQL 4.x result sets to DboMySqlBase::index(). Tests added. Thanks to 'teknoid' for the help. Closes #4503
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8020 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-08 23:09:08 +00:00
mariano.iglesias
b71457f332 Adding test case to show how auto-computed fields should be removed from data if using to clone records, closes #6066
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8019 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-07 14:56:37 +00:00
gwoo
f7dd0800d1 fixes #6062, AuthComponent and Controller::scaffold
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8018 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-06 23:23:12 +00:00
gwoo
bf1e080aeb updating cache documentation and tests refs #5347
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8017 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-06 22:56:06 +00:00
mark_story
9d24c1746f Adding test case to validation for sbcglobal.net addresses closes #6065
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8016 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-06 14:18:53 +00:00
mark_story
ddc047751c Adding submitted test cases from harking Closes #6047
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8013 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-02 02:58:15 +00:00
mark_story
2da0c208d5 Fixing Helper::value() when only a fieldname is used. Refactoring Helper::value() to reduce method calls. Added tests to Helper. Fixes #6033
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8012 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-26 19:45:55 +00:00
the_undefined
27065d7aab Fixed bug in AuthComponent that allowed uppercase actions to pass checks
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8011 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-26 18:50:09 +00:00
mark_story
1895f1c3be Fixing saveAll() when used in conjunction with belongsTo data and validate => first. Tests added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8010 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-25 23:48:28 +00:00
mark_story
af49aec444 Adding session->delete() to remove bleed through in tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8009 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-21 22:52:44 +00:00
mark_story
65a047542e Adding test case to disprove regression in Auth component. Closes #5961
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8008 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-21 22:34:46 +00:00
renan.saddam
dcf1c1e154 Added tests to disprove TreeBehavior can generate warning. Closes #5975.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8007 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-21 01:17:51 +00:00
renan.saddam
b5d7f182a0 Disproving FormHelper::textarea always escapes value. Closes #6016.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8006 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-21 01:15:29 +00:00
nate
d75b063dca Correcting quoted-alias replacement in DboSource, adding (and mocking) MS SQL test, fixes #5942
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8003 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-16 19:08:44 +00:00
mark_story
1111829e99 Fixing issue in __saveMulti() where unique was not always honoured. Thanks for the patch 'Jafinto'. Tests added. Closes #6006
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8001 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-16 04:09:44 +00:00
renan.saddam
157ee1efbf Removing VALID_NUMBER and VALID_NOT_EMPTY from tests, applying patch from 'jperras'. Fixes #5901
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7999 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 01:55:31 +00:00
renan.saddam
de5cb3cabf Adding tests to Router::url in order to test url generation with mapResources(). Closes #5951.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7998 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 01:17:09 +00:00
AD7six
b9ea171429 fixes #6003 tree behavior fails with uuids
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7997 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-15 00:50:01 +00:00
AD7six
5af1835722 adding tests for #6003
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7995 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 23:40:47 +00:00
mark_story
b94a85e938 Altering Helper::url() to enforce escaped query strings for generated urls.
Tests added to Html::link().  Fixes #5982

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7991 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:41:47 +00:00
TommyO
de1d1ae3bd Fixed asset.timestamp inconsistency for css files.
Added tests to confirm css linking.
Closes #5990. Fixes #5991

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7990 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:19:11 +00:00
mark_story
287968934f Fixing next()/prev() when paginating multiple models. Added tests from 'hummer'. Fixes #5970
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7989 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:08:11 +00:00
gwoo
c53c28760f closes #5968, refs #5798, reverts [7893], when dependent is true, conditions are not respected on HABTM associations when deleting parent record. [7893] would result in orphaned records. If more fine grained control is needed, create a model for the join table and handle it on an application/applicaiton basis.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7988 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 22:01:01 +00:00
mark_story
7c87d36d74 Updating Router::queryString() and Router::url() to allow additional parameters to force escaping of & used in query strings. Tests added. Refs #5982
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7987 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 21:38:11 +00:00
mark_story
ba42eb05c1 Fixing broken tests refs #5687
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7986 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 20:37:31 +00:00
gwoo
6026e75009 fixing preg error in Router::normalize cause by last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7984 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 18:27:14 +00:00
mark_story
6c243e1106 Fixing pirate spelling in model.test.php. Thanks to 'teknoid' for the patch. Fixes #6002
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7983 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 18:04:31 +00:00
gwoo
52318f9d17 fixes #5978, Router::normalize url generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7981 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 17:55:48 +00:00
gwoo
e496fc9434 updating auth component and test with additional checks for missing data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7979 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 05:21:26 +00:00
mark_story
4a636b93a8 Fixing showQuery() when there is $error = false. Tests from 'zackenbarsch' added. Fixes #5983
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7978 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 04:12:46 +00:00
mark_story
628a79aba6 Making direction flag in Set::sort() case insensitive. Test updated. Fixes #5992
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7977 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 04:06:01 +00:00
mark_story
7b12272253 Fixing issues with am times and form test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7975 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-13 18:42:08 +00:00
mark_story
cc88680d17 Adding array cast to $check. Fixes issues when non arrays are validated with Validation::multiple. Tests added. Fixes #5986
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7974 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-13 18:41:04 +00:00
mark_story
b0e23ddc7d Adding additional tests to requestAction() for requests with named parameters.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7973 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-07 20:16:52 +00:00
mark_story
6c258c0f93 Fixing Auth's handling of params when loginAction is an array. Tests updated. Fixes #5961
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7972 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-06 03:20:11 +00:00
gwoo
0751251181 updating email tests to match previous change.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7970 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-02 22:50:28 +00:00
gwoo
4f0256f9cd fixes #5904, changing email component to use initialize instead of startup, so it can be used in other components more easily
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7969 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-02 22:47:38 +00:00
mark_story
79c791548f Fixing formHelper::hour when specifying a strtotime compatible string for the selected value. Tests added Fixes #5941
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7967 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-30 16:20:38 +00:00
mark_story
94b9bcae89 Fixing habtm with uuid join tables with an auto model. Tests & model classes added. model test runs slightly more smoothly on postgres as well. Fixes #5940
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7966 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-30 16:09:25 +00:00
mark_story
af799e179a Adding missed model classes fixes #5940
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7963 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-29 03:20:05 +00:00
nate
963da7411b Adding missing models to Model test case.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7960 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:51:10 +00:00
nate
ad208ff8c3 Refactoring previous fix to revert markup changes in HtmlHelper, updating FormHelper tests to comply with coding standard, correcting bad assertions, fixing issue with field types being mis-identified if duplicate names are used, fixes #5919
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7959 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:13:06 +00:00
nate
1deae7a586 Updating Validation::url() with $strict parameter to require URL scheme, fixes #5536
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7958 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:11:06 +00:00
nate
b2b46c3fa4 Implementing $safe mode for RequestHandlerComponent::getClientIP(), which ignores HTTP_X_FORWARDED_FOR, fixes #5842
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7957 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-25 22:02:36 +00:00
mark_story
b063f22f31 Fixing habtm joins for tables with two uuid fields, no primary key and a defined join model. Adding fixtures.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7953 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-23 23:28:08 +00:00
nate
61850b1be1 Cleaning up test code formatting, adding fix for POST hash validation of checkbox lists, fixes #5903, test cases added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7951 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-23 08:13:00 +00:00
TommyO
f7a62bc80d Fixed bug where filename did not match between cache engine and dispatcher in some cases.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7950 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-22 19:01:17 +00:00
mark_story
60e3c6caa4 Removing unecessary Mock object creation.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7949 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-22 04:31:21 +00:00
mark_story
943bb53dda Correcting callback firing of helpers in view. Tests added fixes #5906
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7948 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-21 22:14:48 +00:00
mark_story
a12fd86c54 Applied patch from 'jperras' fixes error in Auth.test.php. Fixes #5899
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7943 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-18 21:04:05 +00:00
nate
a5b7276696 Correcting DboSource::order() identifier quoting, correcting bad DboSource tests, fixes #5900
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7942 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-18 20:49:25 +00:00
phpnut
eb653b8cba Closes #5792, Inflector optimization by returning replaced values instead of assining before returning
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7940 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-18 01:35:27 +00:00
phpnut
3daa7c9e1f Closes #5734, Call static methods in Folder statically
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7937 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-18 00:17:19 +00:00
gwoo
4dbd8e6791 updating to Set::extract() to fix containable test fails, added set cases to match usage in containable.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7934 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 21:33:11 +00:00
nate
855741c2f4 Resetting Router state before running Dispatcher test, fixes #5895
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7932 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 16:11:44 +00:00
nate
e9bd7aea6a Removing accidental debug code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7929 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 04:28:47 +00:00
mark_story
99a2fa439c Fixing errors in Configure test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7928 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 04:14:34 +00:00
nate
8eade1adb3 Fixing code formatting to wrap at 100 characters, adding fix for ticket #5596, counterCache now decrements properly when foreign key value changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 04:13:45 +00:00
mark_story
ea414c8574 Fixing schema test compatibility issues with postgres
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7926 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 03:36:27 +00:00
gwoo
3e7f7ff9f1 correcting schema test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7925 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 03:32:45 +00:00
mark_story
9071d8165f Correcting generation of id attributes for radio buttons. Tests added, fixes #5891
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7924 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 01:49:58 +00:00
mark_story
ea9c080b1c Adding alterSchema() to dbo_postgres. Also handles index alters. Tests added for field and index alter sql.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-16 04:38:48 +00:00
mark_story
48c65c4092 Adding index() to dbo_postgres. Tests added for index introspection. Also fixes object to string conversions when working with database expressions. Fixes #5867
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-15 02:25:55 +00:00
mark_story
d7f70ea5b9 Fixing broken tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7919 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-13 00:20:11 +00:00
phpnut
0d3ea7a5f2 Adding fix when join table does not have a primary key 'id' defined
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-12 17:19:27 +00:00
gwoo
24cc66b43e adding model test, closes #5819
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-12 16:10:11 +00:00
mark_story
3682c9c6ae Fixing missing table errors on model imports. Fixed broken test. Fixes #5877
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7916 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-11 19:16:02 +00:00
mark_story
43af288eca Adding index(), alterSchema(), dropSchema() support to MySQLi driver. Refactored MySQL & MySQLi drivers. Updated and fixed tests.
Fixes #5824

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7915 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-11 00:13:11 +00:00
nate
2c64c449bc Correcting Flash detection in RequestHandler, adding tests. Fixes #5838.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7914 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-10 13:55:58 +00:00
mark_story
569b9dd48a Adding index() to dbo_sqlite. Tests added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7913 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-10 03:38:10 +00:00
phishy
caa063590d Fixed #5800. Fixed INSERTs broken by refactoring of DboSource::renderStatement()
Also added slightly more support for CakeSchema with DboOracle


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-10 01:30:36 +00:00
mark_story
8c51d72ed8 Adding tests to disprove #5855. Closes #5855
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7911 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-09 18:49:00 +00:00
mark_story
d405d1d1c3 Adding indexes to alterSchema() and CakeSchema::compare(). Thanks for the test case and patch 'bamyers99'. Fixes #5862
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7910 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-09 04:54:58 +00:00
mariano.iglesias
2d9f2c5ac8 Fixing issue where test would pass on InnoDB but would fail on MyISAM
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7909 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-08 20:05:12 +00:00
mark_story
48119947b8 Adding App::import() to fix broken tests when running behavior test individually.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7907 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-08 00:49:08 +00:00
mark_story
cf3a194807 Modifying getInstance() to allow subclasses to work properly. Tests added. Changed __output() to protected.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7906 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-07 20:44:00 +00:00
mark_story
090028403b Fixing FormHelper dateTime creation when using custom empty strings and null values. Tests added. Fixes #5769
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-29 00:28:31 +00:00
phpnut
92e04703b7 Adding ability to turn off Camel Casing of nodes in Xml::toArray();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7894 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-26 18:21:21 +00:00
mariano.iglesias
da39ce77b9 Fixing order of associated results on test that was making a test to fail. Fixing issue where HABTM conditions were not being taken into account when deleting links. Adding tests, fixes #5798
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7893 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-26 14:15:51 +00:00
mariano.iglesias
f9557c7611 Fixing issue where radio elements would produce wrong hash when Security component enabled in FormHelper, fixes #5791
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7891 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 16:32:54 +00:00
phpnut
69f883a89f Adding $data['attrib'] back to RssHelper::channel(); after more research use cases for this were found.
Related test case added

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7889 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 05:54:31 +00:00
phpnut
2444b29cd5 Fixes #5778, Order of L10n map array (esp. fre, fra)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7888 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-25 04:23:53 +00:00
mark_story
cfa2229689 Fixing incorrect implementation of RssHelper::channel(). Test cases added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7887 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-24 23:10:29 +00:00
mariano.iglesias
04d06bccf8 Adding tests for PaginatorHelper::prev(), disproves and closes #5793
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7884 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-23 16:38:35 +00:00
AD7six
2391071597 cleaning up from last commit, removing commented calls to (now removed) setparent,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7881 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-20 14:03:41 +00:00
AD7six
2f51ccca04 fixes #5772.
Sql errors when using reserved words for a field name with the tree behavior.
Test Case restructured to allow thorough testing of the various permutations inwhich the tree behavior can be used



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7880 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-20 13:57:44 +00:00
mariano.iglesias
ffab7024f0 Fixing issue where when multiple Memcache servers were being specified, only first would make it. Adding tests. Fixes #5767
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7879 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-19 21:19:23 +00:00
mark_story
8759f4ae28 Fixing reset of Model::__exists when create() is called. Test added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7878 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-19 15:53:41 +00:00
mark_story
f3fc8dd742 Fixing RssHelper test. Timezone in tests did not reflect the DST change.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7877 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-16 05:06:36 +00:00
mark_story
6c2d6dbc0e Fixing greedy Sanitize::stripTags(). Fixes #5758.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7876 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-16 05:00:41 +00:00
mark_story
6806b895cb Fixing merging of actsAs and _findMethods from PluginAppModel classes. Adding test cases and necessary test classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7875 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-14 20:24:27 +00:00
AD7six
b43128c809 Ensuring that the auth component never redirects to an external link.
Tests updated to match code changes and tests added for external referer examples


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7874 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-14 09:07:22 +00:00
nate
f06401c563 Correcting regex that parses default values from schema in DboMssql, fixes #5748. Thanks Pixilation for the patch and test case.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7873 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-14 02:00:02 +00:00
mark_story
9478b9a19f Adding test to prove bug, uncommented additional failing test. Refs #5684
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7872 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-13 01:11:26 +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
renan.saddam
400fadd091 Fixing TranslateBehavior bug when $query['recursive'] is set. Fixes #5593.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7869 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-12 19:45:30 +00:00
mariano.iglesias
f8b69b10e2 Adding tests for r7867
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7868 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-12 17:00:00 +00:00
TommyO
5f0858e1ad Fixed errors in usage of SimpleTest for EmailComponent tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7865 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-11 19:52:41 +00:00
mark_story
42fa305fca Fixing error in previous commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7863 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-11 00:19:24 +00:00
mark_story
eccfea3429 Fixing ModelBehavior::detach() when non 0 index behaviors are detatched. Tests Added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7862 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-11 00:17:37 +00:00
nate
1a6a0d1788 Fixing test for DboSource::expression(), moving $startQuote and $endQuote from DboSource to DataSource.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7859 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 18:57:50 +00:00
mariano.iglesias
dde4906195 Adding patch by dardosordi. Making all calls to header in SecurityComponent go through Controller. Fixing issue where invalid basic auth credentials would not trigger another login request. Added tests, fixes #5732
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7858 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-10 17:18:00 +00:00
TommyO
6dc11420ee Field type improperly and unnecessarily checked for HABTM inserts. Fixes #5718
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7855 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 20:55:51 +00:00
nate
16eebce7f7 Adding support for DboSource::expression(), plus test in Model case. Fixing code formatting in model test and View class -- wrapping lines at 100 characters.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7853 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-09 03:20:14 +00:00
mariano.iglesias
e9953e3f93 Fixing issue where JavascriptHelper::link was generating wrong URLs when webroot is defined and appending timestapping. Fixing issue in previous commit. Fixes #5723, fixes #5045
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7851 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 12:45:00 +00:00
mariano.iglesias
81e2f4a044 Fixing commit in r7843 so real files are accounted for
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7850 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 12:34:51 +00:00
renan.saddam
3223ba55cc Changing tests in order to works in both Linux and Windows.
Using correcly syntax of javascript->block.
Commenting no:cache test, it must be fixed in 1.2+.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7849 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 03:47:09 +00:00
renan.saddam
111b886570 Removed trailing whitespaces from tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7848 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:58:37 +00:00
renan.saddam
edfbe5be33 Proving missingAction broken when using AuthComponent. Refs #5687.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7846 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 01:00:05 +00:00
TommyO
e40ea525f0 Added tests for validation for slightly better coverage.
Minor refactoring of Validation class inspired by a number of recent bug reports.  Mostly for consistency and clarity.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7845 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 00:55:36 +00:00
mariano.iglesias
83faf59d0c Adding email validation test, disproves and closes #5720
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7844 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 00:33:59 +00:00
mariano.iglesias
8777b8ef96 Fixing issue where double call to webroot on HtmlHelper::css was generating wrong URLs when forcing asset timestamp, fixes #5723
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7843 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 00:24:51 +00:00
mariano.iglesias
8da2a5208f Adding multibyte support to TextHelper::truncate, fixes #5610
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7842 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 00:07:17 +00:00
DarkAngelBGE
5bd8dbb3ca adding test manager test to testsuite test group; small refactorings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7841 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 16:17:18 +00:00
DarkAngelBGE
be6c24503d adding test method for testing the running of a testcase (doh!) to the test manager test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7840 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 11:47:59 +00:00
DarkAngelBGE
e882d990d7 adding test manager test case, some whitespace changes throughout the testsuite and the schema model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7839 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 11:33:13 +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
renan.saddam
aab80c3526 Bringing coverage to 90%, also removing unused $files variable.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7836 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-07 01:08:18 +00:00
renan.saddam
50752a840a Added support to multiline plural message string. Fixes #5663.
Converting "\r\n" (Windows) to "\n" (Non-Windows) when extracting and when translating the message.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7834 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 22:57:50 +00:00
renan.saddam
9f090d0772 Applying patches from 'davidpersson'. Fixes #5688, #5689.
Skipping permission test if SO is Windows.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7833 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 18:00:56 +00:00
AD7six
b7587d2d55 fixes #5696 incorrect timestamp definition generated by Posgres schema
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7832 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 13:22:57 +00:00
renan.saddam
f4e2b3e24b Handling numeric columns unsigned. Fixes #5695.
Also added some tests to MySQL and MySQLi.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7831 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 02:15:12 +00:00
AD7six
b12a5739a2 updating documentation for url validation, making the regex easier to edit. Ref #5685
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7828 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 16:29:10 +00:00
AD7six
2a9b8643db Correcting index detection to not include the fields from a previous index, where several mult-field indexes
exist


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7827 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 13:44:05 +00:00
mark_story
ea30a48c5a Fixing validation of URLs with round brackets. Patch from 'dho' added.
Closes #5685

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7826 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 03:49:55 +00:00
mark_story
7822a69b7f Fixing test broken by [7748]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7825 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 02:30:51 +00:00
gwoo
dfca7b08b1 closes #5703. optimization for folder::read(), thanks davidpersson.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7824 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 02:18:49 +00:00
renan.saddam
f2823e85d7 Fluxing the objects after each test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7822 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-04 01:35:09 +00:00
renan.saddam
171fa62b94 Added tests to cover bug with recursive = -1. Refs #5593.
Did a refactoring to TranslateBehavior and moved all tests from translate.test.php to models.test.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7821 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-03 23:58:44 +00:00