phpnut
cb487bd6e6
More optimization refactoring.
...
Fix cache but causing object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
gwoo
970ef7dc56
fixing issue in schema when model does not use a table. updating cache test to properly test Cache::set()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7592 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-11 13:35:11 +00:00
AD7six
0df14f183f
adding cache test with multiple no cache tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7591 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-10 16:48:43 +00:00
phpnut
bfa180e4af
Setting missing props on files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7588 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:51:28 +00:00
phpnut
8a30e58504
Fixing class name in doc comment
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7587 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:48:13 +00:00
phpnut
a6f19c8240
Adding fix for Model::afterFind(); not having access to $this->data when using TreeBehavior
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7586 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:42:18 +00:00
mark_story
8e6a5a7214
Fixing issue with CakeTestCase::testAction not properly being able to simulate query string parameters.
...
Added tests for various parameter syntaxes.
Closes #5400
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7585 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 16:48:52 +00:00
DarkAngelBGE
10bb597fd6
rewriting configure values after successful execution of CakeTestCase::testTestAction()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7581 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:41:56 +00:00
DarkAngelBGE
dbeb3af384
removing unneeded code from cake_test_case.test.php; fixing CakeTestCase test
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7579 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 05:36:18 +00:00
DarkAngelBGE
8346bba694
fixing Folder->chmod() to take account files in subfolders as well when the recursive option is set; adding tests to prove the fix; fixes #5392
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7574 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 04:34:11 +00:00
DarkAngelBGE
19d4f3d596
adding a couple 'return home early' refactorings
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7572 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 20:33:48 +00:00
mark_story
d791603791
Updating folder::delete() to properly record file deletions. Thanks for the patch 'davidpersson'. Tests Added. Closes #5394
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7570 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 16:44:06 +00:00
gwoo
1f2ffe2b75
fixes #5285 , requestAction with array params
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7565 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-07 13:43:39 +00:00
mark_story
b3c33af9ee
Removing test disabler in CacheHelper test.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7561 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-05 21:44:30 +00:00
mark_story
e5cfd69636
Adding test layout with cake:nocache tags.
...
Adding tests to CacheHelper
Fixing CacheHelper not parsing cake:nocache after $content_for_layout when view file has cake:nocache tags as well.
Closes #5275
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7560 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-05 21:41:07 +00:00
TommyO
f96f7f0926
Added additional Set test for Xml class.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7559 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-05 17:48:51 +00:00
mark_story
a83a0f099f
Switching CakeTestCaseTest to use Core app controller instead of app/app_controller. Closes #5389
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7558 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-05 17:27:20 +00:00
TommyO
5014b9d330
Found bug where mulitple instances of mulitple nodes within the same parent node caused conflicts in toArray(). Added test and fix.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7557 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-05 17:20:18 +00:00
nate
ccc602c82a
Updating PaginatorHelper::options() docblock and adding test cases to demonstrate correct usage, closes #5380
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7556 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 19:10:15 +00:00
gwoo
2a84ec9944
fixes #5384 , Xml::toArray()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7555 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 15:34:08 +00:00
nate
927950e81c
Adding TranslateBehavior tests to disprove #3805
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7551 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 02:04:44 +00:00
mark_story
ba2542ec29
Fixing infinite loop when importing models that have relations that are also fixturized. Closes #5166 .
...
Tests updated and added.
Added documentation concerning use of app_error.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7550 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 01:49:29 +00:00
nate
57c633a64f
Adding proper callback disabling for multiple finder types, fixes #5343
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7549 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 01:00:08 +00:00
mark_story
a8bb2eb826
Fixing saveAll() using validate => only, applied patch from 'ADmad'. saveAll() now returns value of all validations, not just the last row to be validated. Closes #5376 . Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7547 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-03 16:44:48 +00:00
the_undefined
95947053fe
Fixed bug in parent traversal, closes #5225
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7546 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-03 15:40:25 +00:00
mark_story
55361320d4
Adding tests to fixture test showing model imports.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7544 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 23:04:59 +00:00
DarkAngelBGE
0b8006625c
fixing missing $group variable in mssql driver renderStatement method, closes #5357 , changing indetation in dbo_mssql.test.php
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7539 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 19:00:00 +00:00
mark_story
91a6508a26
Adding CakeFixture Test Case
...
Adding TestSuite group test
Fixing documentation and removing unecessary ife() calls from CakeTestFixture.
Made CodeCoverage test run nicely in group tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7538 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 14:21:57 +00:00
nate
26e2747180
Fixing quoting of numeric literals in DboSource::order(), closes #5360
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7537 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 20:40:15 +00:00
nate
7b8e69f120
Added config value caching and just-in-time compiling to Router
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7536 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 18:17:14 +00:00
mark_story
38565d7069
Adding test to disprove #5356
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7534 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 14:38:24 +00:00
mark_story
c58e58a491
Adding tests for secured forms. Fixes the issues related to checkboxes in multi row forms.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7533 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 03:11:35 +00:00
renan.saddam
f817cb9a07
Added more tests to resetBindings at ContainableBehavior. Closes #4988 , #4934 .
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7532 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 02:13:55 +00:00
gwoo
dde620edb4
fixing bug in Set:map() handling of recursive records
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7531 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-28 18:16:40 +00:00
renan.saddam
3dc8bcbfe8
Fixing typo in test method name. Fixes #5348
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7529 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-28 12:08:36 +00:00
renan.saddam
db5235261e
Proving correct especial char encoding. Closes #5335
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7528 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-28 02:37:37 +00:00
nate
e64af40530
More fixes for Postgres boolean handling, fixes #5327
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7525 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 12:42:13 +00:00
gwoo
bae3424fb2
fixing questionable test cases
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7522 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 11:17:54 +00:00
DarkAngelBGE
fa4c69fb29
commenting failing Set::extract() test because of additional SimpleTest errors showing up when performing the Identical Expectation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7521 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 09:10:05 +00:00
DarkAngelBGE
384c5a0624
adding failing test that proves #5225
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7520 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 08:53:44 +00:00
DarkAngelBGE
7863669dab
prevent model->save() validating all fields when a fieldList option is supplied, closes #5320
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7519 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 08:01:00 +00:00
nate
1940d8877c
Fixing Model/db $cacheSources conflicts, model can now disable only. Fixes #5177
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7518 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 04:55:15 +00:00
nate
57e53775ff
Automatically unescaping binary data in DboPostgres, and auto-handling boolean values, fixes #5118
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7517 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 04:21:01 +00:00
phpnut
80fa429785
Adding fix for undefined notice in vendors.php
...
Removed check for required file in Cache::!__loadEngine();
Fixed cache being wrote on each request from Configure::listObjects(); when data was an empty array
Removed extra call to App::getInstance(); in App::import();
Moved setting of App::!__loaded; inside of if statement.
Removed cake core install directory paths from the cached dir_map.
Changed uses('file'); to require statement in file.php
Changed uses('set'); to require statement in inflector.php
Removed check for existing inflections.php since this file has been included in 1.2 since Dev releases.
Added additional test for Helper::clean();
Fixed bug in Helper::!__clean();
Fixed random output of 1 when using MediaView;
Added csv mime type to MediaView
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7516 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 03:42:17 +00:00
gwoo
7fe1a03fda
fixes #5331 , model alias no longer overwritten
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7515 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 01:30:09 +00:00
mark_story
7e039ee62d
Adding additional tests to XML.
...
Added XML group, updated RssHelper and XmlHelper tests to not cause issue when run as part of a group.
Updated assertions on helper test.
Fixed broken methods in XML
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7514 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 23:15:48 +00:00
john
94af139170
Adding case for HABTM with extra fields in Set::map tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7513 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 18:51:23 +00:00
mark_story
6086e96a61
Adding inflection rule for empty string. Fixes #5325 . Tests added.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7509 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 18:30:54 +00:00
Jippi
fc012dc32f
Adding test for incorrect escapeing of numeric fields with value '' in postgresql dbo
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7508 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 16:41:41 +00:00
DarkAngelBGE
285d075475
Fxiing validation error when trying to update records using saveAll for hasMany fixes #4981
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7506 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 13:31:07 +00:00