Commit graph

1210 commits

Author SHA1 Message Date
mark_story
0b23ec64ff Modified all remaining tests to use CakeTestCase. Switched all uses() calls to App::import().
Added tests to configure.test to test importing from plugins.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7348 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-21 02:40:58 +00:00
mark_story
c286736f69 Added afterFind callback to Models where recursive >= 2. Added tests from 'ezyang'. Closes #5103
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7347 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-20 17:25:39 +00:00
mark_story
c1bac3358a Adding additional tests related to prefix routing. Shows usage in paginator. Refs #5115
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7346 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-19 17:20:42 +00:00
mark_story
c19e7ff3da Modified test to use accented characters.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7345 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-17 17:14:28 +00:00
mark_story
4355a13939 Altered TextHelper::truncate() when using exact = false and considerHtml = true close tags would be chopped off leaving incorrect Html. Closes #4941
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7342 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-16 12:40:49 +00:00
renan.saddam
8bbc0d7078 Added test case to prove #5096. Refs #5096
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7340 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-16 00:48:58 +00:00
joelmoss
029f2ab75c Created test to prove #4941. Refs #4941
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7339 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-15 11:01:44 +00:00
mark_story
b2d74c8be1 Added tests to cover model validation setting errors, controller render passing error and form helper field error display. Closes #5077.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7338 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-15 02:13:14 +00:00
mark_story
684fb5fcce Replaced in_array() with array_key_exists(). Closes #4465
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7336 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-12 00:23:08 +00:00
mark_story
20851bd548 Added ability to singularize 'gloves', 'wolves', 'shelves' and other ves words. Added tests. Closes #5080
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7335 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-12 00:22:09 +00:00
mark_story
5ec8eef6ce Added userOffset check to timeAgoInWords, tests added. Closes #5068.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7333 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-10 03:30:28 +00:00
AD7six
a98cafcfbe Adding test case for #5064
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7332 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-09 17:51:08 +00:00
nate
0cd5b435d9 Adding Router tests to verify URL generation with flags and prefixes both in and out of context
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7331 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-09 14:28:32 +00:00
joelmoss
aa1b0c776e JavascriptHelper::blockEnd now correctly respects safe option. Test also added. Fixes #5074
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7330 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-09 12:08:51 +00:00
renan.saddam
8d644172c9 fixing broken test, improving code coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7329 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-09 04:07:16 +00:00
mark_story
acdbf66f50 Adding tests to object test. Coverage now ~80%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7328 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-09 03:15:01 +00:00
mark_story
a341e74f03 String::insert() now variable safe. Tests added. Fixes 5041.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7327 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-07 23:24:39 +00:00
phpnut
ed0a031ec4 Adding correct test cases for #5046 showing proper prefix usage, closes #5046 as invalid
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7323 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 14:48:09 +00:00
phpnut
9bc1acb2ec Closes #5051, AjaxHelper form function should use mt_rand() instead of rand().
Replaced all rand() with mt_rand() in the core.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7322 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 14:31:22 +00:00
phpnut
bdc3685e62 Fixes #5024, find('threaded') returns empty array if root node is not included in the results.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7321 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 14:10:42 +00:00
phpnut
d853520e46 Fixes #5025, UTF8 signs are not treated correctly at form validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7320 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 13:25:22 +00:00
phpnut
84069e372f Fixes #5021, findAllThreaded does not work with tables that have set primaryKey to something other than 'id'
Removed am() from Model::_findThreaded();
Cleaned up error.php and dispatcher.test.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7318 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:37:18 +00:00
gwoo
20439c098b adding another test case for img from vendors, closes #5033
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7317 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 12:24:51 +00:00
phpnut
5131e1c3b3 Fixing undefined variable usage in Model::saveField();
Fixes #5053 Model:saveField $options bug;

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7316 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 11:02:09 +00:00
phpnut
8b3dc85907 Committing test case I missed in [7314] for ticket #5016
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7315 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 10:27:29 +00:00
phpnut
6ee4849172 Removing invalid test case added in last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7313 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 09:47:13 +00:00
phpnut
822c8978a9 Fixes #5002 Model name in PaginatorHelper sortKey.
Closes #5032
Small performance improvement in App::!__load();

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7312 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-05 09:44:42 +00:00
gwoo
5ddd330b11 closes #5019, updating test case to show that security component is operating as expected. fix for newLine in utf subject of email component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7311 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-04 14:18:01 +00:00
gwoo
3ab12a868f updating controller test. closes #5029, if you change the content type with request handler in a test debug must be set to 0, see line 630 of RequestHandler. Fixed duration handling for core cache settings when debug equal to 1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7309 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-04 13:26:43 +00:00
mark_story
3da913f392 Updated String::insert() so that when using ? as parameter it offsets the length of the parameter. Added tests to model, and string. Closes #5035
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7307 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-03 02:19:19 +00:00
mark_story
c25ed9016a Fixed attributes being set for select elements in formHelper::dateTime() when $options[id] is specified. Closes #5013.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7306 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-03 00:46:42 +00:00
mark_story
a2fdf97c41 Added test for deep array read and writes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7304 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-01 23:55:46 +00:00
renan.saddam
88197569ad Added test case to #5008. Quoting numeric value 0 (zero)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7302 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-30 13:44:16 +00:00
mark_story
4b1de6ac0e Added test for setting extension with Router::connect()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7298 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-29 20:24:06 +00:00
nate
99eb60e7b0 Adding test case for DboSource::conditions(), disproves #5008
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7297 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-28 01:08:52 +00:00
gwoo
c004dd68a5 removing empty lines from the end of test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7295 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 08:17:02 +00:00
gwoo
a6d12c7842 updating folder test to use TMP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7294 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 08:04:54 +00:00
gwoo
2bf3a0b08f commented behavior.test for future cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7292 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 07:23:22 +00:00
nate
4fa9872969 Small correction to previous test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7290 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:54:40 +00:00
nate
7bad69a2d0 Adding test for CookieComponent::write() and writing an array of unencrypted key/value pairs, disproves #4997
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7289 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:52:36 +00:00
gwoo
06869fd4b3 updating file.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7288 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:46:42 +00:00
gwoo
c78b02460f updating mode.test to comply with last changes to deprecated methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7287 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:33:53 +00:00
phpnut
022ffa3f4f Adding fixes for pagination on associated models.
Corrected dot notation use in Controller::paginate();

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7286 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:25:08 +00:00
nate
14e8c5fe7b Correcting inconsistent return values in Model::saveAll(), updating bad tests, fixes #4981
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7283 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:07:00 +00:00
gwoo
70276afa3b fixes #3456, Use = instead of IN where possible
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7280 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 05:14:52 +00:00
gwoo
1576a83505 fixing issue with sort in pagination and adding tests, removes previously deprecated controller methods and adds trigger_error to recent ones
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7276 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 00:43:31 +00:00
gwoo
924ca38fea updating view test case for enhancement
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7273 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 21:04:46 +00:00
AD7six
d000c59ceb Deprecating findNeighbours
adding find('neighbors')


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7272 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 19:42:07 +00:00
AD7six
383c11fc13 Adding test case for find('threaded');
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7269 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 17:28:12 +00:00
joelmoss
a34c3a85de removing getTests method from model test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7267 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-26 17:09:02 +00:00