Commit graph

4937 commits

Author SHA1 Message Date
davidpersson
0a610d2c30 Updating Debugger::log to get the source from the end of the stack
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8127 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-23 18:59:37 +00:00
jperras
14aaa1682f Updating doc block for Valdation::url optional parameter. Fixes #6220.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8126 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-23 13:48:37 +00:00
jperras
4439bc4f70 Fixing regression in PaginatorHelper. Adding tests for PaginatorHelper::sortDir, as well as fixing incorrect test for sorting with Model.field dot notation. Fixes #6218.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8125 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-22 18:59:53 +00:00
mariano.iglesias
364fe18208 Adding test to disprove issue. Closes #4693
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8124 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-22 13:09:50 +00:00
jperras
5f035ca340 Adding doc blocks for new inflector class variables & rules method. 2009-03-21 21:38:32 -04:00
jperras
0d8d8fa401 Adding tests for custom singular rules to Inflector. 2009-03-21 20:08:21 -04:00
jperras
6c1c6ada71 Fix Inflector::singularize bug with custom irregular singular rule not being parsed. 2009-03-21 20:06:30 -04:00
davidpersson
fd7d6718a1 Updating tests to not affect other ones when run from a group
Adding NoCrossContamination group
Shortening group class names
Renaming lib_controller group
Updating test imports to include the core AppController by default
Some cosmetics




git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8123 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-21 23:55:39 +00:00
gwoo
643651fe56 Merge master in 1.3 2009-03-19 14:10:13 -07:00
gwoo
fc7773fe2d merging fixes to trunk. set version to 1.2.2.8120
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8120 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-19 20:25:10 +00:00
gwoo
3d4c5b424d adding models/behaviors for object persist tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8119 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-19 20:10:10 +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
jperras
a9952e90c1 Reverting change to regex greediness. 2009-03-18 02:11:03 -04:00
jperras
6068549418 Adding commented-out & empty Inflector::rule configurations to config/bootstrap.php. Definition of rules in bootstrap replace previous definitions found in config/inflections.php 2009-03-18 01:54:27 -04:00
jperras
0983a81c8d Removing config/inflections.php file. 2009-03-18 01:48:05 -04:00
jperras
3853259f3f Adding test cases for Inflector::rule. 2009-03-18 01:43:53 -04:00
jperras
f811a69c87 Fixing typo. 2009-03-18 01:42:22 -04:00
jperras
b563393752 Renaming inflector regex cache. 2009-03-17 20:56:48 -04:00
renan.saddam
78daa13900 Defining the default answer as the current path. Fixes #6204
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8115 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-18 00:43:21 +00:00
jperras
7bc94893c7 Removing redundant variable initialization. Making regexes less greedy. 2009-03-17 20:22:36 -04:00
renan.saddam
76e0f17dbc Updating documentation to improve code completion
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8114 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 21:10:28 +00:00
gwoo
de5907326e fixes #6203, Model::invalidFields respecting Model::whitelist
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8113 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-17 18:19:12 +00:00
gwoo
7f853532d9 updating ShellDispatcher to pass tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8112 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 23:08:39 +00:00
davidpersson
1c76e2e18e Fixing ShellDispatcher tests.
Order of paths should not be taken into account.
CONSOLE_LIBS constant is not guaranteed to hold a relative path only.
Matching expectations for the output of help command to show correct shortened paths.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8111 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 22:54:22 +00:00
davidpersson
0ead89639a Adding tests for Controller::redirect.
Proves #6200 is invalid. 
Making original tests more strict.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8110 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 14:07:26 +00:00
mariano.iglesias
a9062e2e02 Adding new email validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8109 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 12:54:25 +00:00
mark_story
eba2e78d06 Fixing typo in last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8108 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 03:06:28 +00:00
mark_story
4dceb5be31 Adding doc blocks for properties that previously had no documentation. Closes #6199
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8107 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-16 03:01:51 +00:00
jperras
70e0316cd2 Renaming schema.php to cake_schema.php. Modifying relevant App::import calls. 2009-03-15 22:22:18 -04:00
jperras
527b1f9cc8 Renaming libs/session.php to libs/cake_session.php . Modifying relevant App::import calls. 2009-03-15 22:07:12 -04:00
jperras
e651c77bcf Renaming behavior.php to model_behavior.php. Modifying associated App::import calls. 2009-03-15 21:17:08 -04:00
jperras
beb6aeec0c Fixing incorrect doc blocks for connection_manager.php. Thanks to ADmad for noticing the inconsistency.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8106 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 23:01:21 +00:00
jperras
b22ddc11f9 Renaming socket.php to cake_socket.php . Changing associated App::import calls. 2009-03-15 16:52:27 -04:00
gwoo
056402efa7 moving checks for Set::extract() so that null will be returned when empty data is passed and classicExtract is expected.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8105 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 19:39:35 +00:00
davidpersson
93bf4fd0dc Fixing debug() test making it match truncated paths too.
Adding skip to uses() test to make running all tests in sequence more smooth.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8104 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 19:31:59 +00:00
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
phpnut
3748987599 Adding fix from davidpersson: sort not working for subdirectories in Folder::findRecursive
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8102 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 00:21:28 +00:00
phpnut
e89bc0be10 Committed [8099] before I finished changing variable names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8101 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 00:19:02 +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
phpnut
ed43e95cf3 Adding methods for setting headers and handling header output, will make testing easier on the class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8099 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 00:08:56 +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
6cb8b3d286 Merge branch 'master' into 1.3.x.x 2009-03-14 13:57:18 -07:00
gwoo
198548092b cleaning up some Set::extract, adding tests for empty data and results. Removing some checks from Cache engine.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8097 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-14 19:56:28 +00:00
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
2009f4b896 fixes #6152, removal of automatic setting of App.encoding in l10n
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8094 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-12 17:34:32 +00:00
mark_story
bf4fa09b8f Removing whitespace introduced in [8014]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8093 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-12 17:33:47 +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