Commit graph

1190 commits

Author SHA1 Message Date
the_undefined
3db8b860d1 Fixed another String::tokenize bug, closes #4627
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6852 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 21:22:10 +00:00
gwoo
2334a27f51 updating acl.test with new fixtures. reverting modified acl related fixtures used for db_acl.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6851 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 19:29:03 +00:00
DarkAngelBGE
4621e68803 bringing the numbers helper to 100% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6850 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 18:04:09 +00:00
gwoo
99874c60d9 fixes #4238, Mysqli working with the test suite.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6849 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 18:03:44 +00:00
gwoo
c0f042e4ab fixes #4432, Model aliases. Updated cases. Removed usage of $this->model in model.test.php in favor of local variables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6848 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 16:42:39 +00:00
DarkAngelBGE
ead3ff125d adding header test to XmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6847 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:50:27 +00:00
DarkAngelBGE
db35048e12 very small refactoring for apc.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6845 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:24:40 +00:00
DarkAngelBGE
d04101a95a refactoring Controller::referer
adding Controller::header() for testability
bring Controller up in code coverage

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6844 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:22:57 +00:00
DarkAngelBGE
87d47722ff removing a session test that would not work in the all group
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6843 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:21:52 +00:00
DarkAngelBGE
2bdf2a7704 removing one test from xml helper that would not work in a group test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6842 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 14:20:58 +00:00
DarkAngelBGE
35ce49b41e fizing sanitize.test.php breaking the all core tests group
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6841 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 12:26:30 +00:00
joelmoss
ba0a563fe7 Removed TestModel from Object test as it conflicted and wasnt needed anyway
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6840 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 12:23:22 +00:00
DarkAngelBGE
79e1fd6ed2 enabling php4 for xml helper tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6839 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 08:15:15 +00:00
DarkAngelBGE
88a2f0936e fixes #4559
bringing xmlhelper to 100% code coverage
fixing small bugs in XmlHelper::__parseContent

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6838 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 07:56:33 +00:00
DarkAngelBGE
a5510c2ebb fixes #4624
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6837 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 06:51:18 +00:00
DarkAngelBGE
f420d1494e analyze code coverage link on same line as the other test links,
fixing wrong security expectation

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6836 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 06:36:38 +00:00
DarkAngelBGE
4b91712791 bringing security component up to 84% coverage,
internationalizing trigger_error for security lib

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6835 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 06:27:43 +00:00
phpnut
52ec5467c6 "Adding new Multibyte Class
Adding additional tests
Adding some missing casefoldings
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6833 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 04:20:24 +00:00
the_undefined
93ad951a8c Fixed small bug in TextHelper::autoLinkUrls, closes #4357
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6832 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 03:53:26 +00:00
the_undefined
170fe3d9d1 Fixed Router::queryString php.ini setting dependency, closes #4614
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6831 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 03:40:24 +00:00
the_undefined
451192018a Improved AuthComponent to use an array to match the login action, fixes #4572
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6830 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 03:22:34 +00:00
the_undefined
425dbf363d Fixed bug in BehaviorCollection::trigger, closes #4520
Added basic test coverage for BehaviorCollection::trigger

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6828 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 02:33:44 +00:00
the_undefined
6f64efb342 Fixed a String::tokenize bug for a single enclosed item, closes #4627
Added basic test coverage for String::tokenize

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6827 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 02:05:07 +00:00
mark_story
fca356c040 Updated Sanitize test to increase code coverage (92.45%)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6826 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 01:40:52 +00:00
the_undefined
d9a30eaa62 Fix for Model::saveAll validate => first, closes #4533
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6825 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 01:39:06 +00:00
the_undefined
823eb81dc7 Fixed bug in Model::__save validation logic, closes #4554
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6824 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 01:03:11 +00:00
the_undefined
232e3f7ec1 Fix for Model::saveAll bug, closes #4466
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6823 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-13 00:39:29 +00:00
joelmoss
0b1f7b9151 Debugger tests now at over 70% code coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6822 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 21:07:21 +00:00
joelmoss
91b66abb6d Taking code coverage for Object test to 66%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6821 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 20:38:58 +00:00
DarkAngelBGE
015d21bc6b adding tests for security library
adding check for empty key to Security::cipher()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6820 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 19:50:00 +00:00
DarkAngelBGE
b42a6b6578 fixing code coverage manager.test to be able to be run from group tests itself
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6819 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 18:46:12 +00:00
DarkAngelBGE
cdbc556db8 removing loader.test.php from configure.group.php to make it work again
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6818 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 18:21:13 +00:00
mariano.iglesias
db11f9ef91 Improving test readability
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6817 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 15:47:20 +00:00
nate
81b57b7d5d Pushing TextHelper code coverage to 100%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6816 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 07:05:33 +00:00
nate
b7a5a28fbb Improving code coverage for PHP-native JSON generation in JavascriptHelper, fixing object output bug
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6814 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-12 06:04:56 +00:00
mariano.iglesias
ccd28c0139 Re-inserting the expected array for clarity in testSaveAllValidation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6813 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 23:30:41 +00:00
mariano.iglesias
47dad34bb6 Using datasource driver to build table names for tests. Fixing test and adding a non-atomic saveAll. Fixing fixture value.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6812 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 23:08:47 +00:00
joelmoss
de3014b83e Adding more tests for Session component, taking code coverage to over 95%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6811 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 22:51:37 +00:00
mark_story
a70cc25eed Updated Model tests to reflect diffs related to ticket #4444
Fixed issue with testing of model::query with incorrect table name

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6810 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 20:07:04 +00:00
mark_story
f653e203b8 Updated AclComponent Test to increase code coverage
Created actual fixtures for aros, acos acos_aros so tests are no longer dependant on each other.

Added configs/acl.ini.php to test_app to facilitate testing of INI base Acl.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6809 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:49:13 +00:00
mariano.iglesias
94c129cf9e Updating test in JavascriptTest so float precision is taken into account
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6808 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:42:56 +00:00
mariano.iglesias
98cf0f47f5 More code coverage for JavascriptTest
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6807 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:37:45 +00:00
mariano.iglesias
219dca11a0 Fixing issue where 'safe' option was not being considered when calling JavascriptHelper::codeBlock and then blockEnd. Increasing test code coverage for JavascriptHelper.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6806 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 19:14:35 +00:00
nate
c0d86a76d3 Fixing MSSQL Driver
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 18:53:54 +00:00
joelmoss
d4e01c9322 Removing the need for REQUEST_URI for the show passes link
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6804 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 18:27:39 +00:00
mariano.iglesias
a86b682146 Moving fixing of double path into CodeCoverageManager::start
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6803 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 18:15:36 +00:00
phpnut
d7a171ecf2 "Removing multibyte support from the String class."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6802 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 17:34:53 +00:00
mariano.iglesias
d3cdb7b591 Reverting check from [6791]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6801 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 16:43:16 +00:00
nate
7f090c0cc6 Fixing Socket test to run on non-standard virtual host configurations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6800 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 16:42:19 +00:00
mariano.iglesias
ce01acfbdf Reverting test change from [6790]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6799 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 16:39:18 +00:00
joelmoss
285a3af40a Making the HTML Test reporter look a little more aestheticly pleasing.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6798 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 16:18:21 +00:00
nate
925e022e4f Adding check for XDebug in CCM test, fixing database check in MySQL, adding test coverage for View, fixes #4619
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6797 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-11 15:48:45 +00:00
mariano.iglesias
751a1b7cf7 Reverting [6795] as it changes existing behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6796 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 18:53:15 +00:00
joelmoss
df24fff1a2 Paginator Helper prev and next methods are now wrapped in span tags instead of div tags. Tests also modified to support this. Closes #3991
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6795 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 18:32:51 +00:00
mariano.iglesias
9aa1d645ab Adding missing xdebug_stop_code_coverage() in CodeCoverageManager
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6794 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 17:29:28 +00:00
mariano.iglesias
a052c1c309 Stopping xdebug code coverage once it is no longer needed on CodeCoverageManager
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6793 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 17:28:49 +00:00
mariano.iglesias
0d02637352 Fixing issue where double path separator was being used under Windows
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6792 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 17:15:16 +00:00
mariano.iglesias
88f25d501b Fixing CodeCoverageManagerTest for PHP4 command line call under Windows. Fixing issue in CodeCoverageManager where wrong path was created on Windows.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6791 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 17:01:51 +00:00
mariano.iglesias
b8f0e80f7d Fixing test cases in HtmlHelperTest for command line testing and removing function aliases from CodeCoverageManager
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6790 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 16:42:35 +00:00
mariano.iglesias
b32a196238 Adding more coverage for HtmlHelperTest and fixing issue where HtmlHelper::meta() was overriding the found type as specified in attribute
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6788 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 04:57:46 +00:00
mariano.iglesias
6eb4daccd2 Refactoring HtmlHelperTest to use assertTags, fixes #4449
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6787 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 04:32:55 +00:00
mariano.iglesias
22781b8af5 Optimizing optional quotes handling in assertTags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6786 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 04:28:35 +00:00
mariano.iglesias
14fc2ef778 Allowing quotes enclosing attributes to be optional when regular expression used in assertTags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6785 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 04:26:52 +00:00
mariano.iglesias
697261e3da Finished refactoring of FormHelperTest so tag matching is done through assertTags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6784 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 03:20:06 +00:00
mariano.iglesias
5e90f87c2d Removing unneeded operator
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6783 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-10 01:39:56 +00:00
mariano.iglesias
05e19df994 Fixing PHP4 subversion required to do special processing on CLIReporter
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6782 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 21:28:38 +00:00
nate
9f6ed48362 Removing Post model dependency from View test execution
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6781 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 17:57:36 +00:00
nate
a5822e6967 Additional test coverage for SessionHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6778 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 16:13:30 +00:00
mark_story
a53d308fa3 Fixed formatting in session helper test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6777 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 12:31:34 +00:00
mark_story
2109b9e909 Increase test coverage for SessionHelper
Added Layout needed for SessionHelper test to test_app/views/layouts

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6776 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-09 12:27:07 +00:00
nate
a392e5e605 Refactoring tests and adding code coverage for HtmlHelper
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6775 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 17:48:14 +00:00
DarkAngelBGE
9d1619f7cd adding tests to the View
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6773 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 14:54:08 +00:00
the_undefined
493d5e61e1 Allowed whitespace in front of opening tags
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 13:19:38 +00:00
the_undefined
de5f744a9c Changed close tag prefix from ! to / to be more HTMLish
Added support for simple open tags using <tag
Refactored FormHelper to use new syntax / features

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6771 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 13:14:47 +00:00
the_undefined
075afb244a Restored last missing FormHelper test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6770 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 11:57:58 +00:00
the_undefined
0a715f2afe Refactored CakeTestCase::assertTags to tokenize the validation process and give useful debug information on demand
Refactored all FormHelper test cases to work for the new approach and make use of new features
Fixed a FormHelper::hour dateTime bug causing the hour 0 to be selected at 12pm

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6769 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 11:32:31 +00:00
nate
e2cca50ba9 Cleaning up code formatting on Paginator helper test, and adding extra test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6768 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 04:01:07 +00:00
mark_story
231d585221 Updated paginator.test.php to increase code coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6767 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 03:26:47 +00:00
the_undefined
8b42465eaf Implemented String::insert
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6766 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-08 02:59:00 +00:00
nate
4519261b39 Adding test cases for TextHelper::toList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6765 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-06 20:44:47 +00:00
DarkAngelBGE
7985746190 fixing failing timehelper tests (isThisWeek())
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6764 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 17:54:05 +00:00
DarkAngelBGE
5cb193db6e putting RouterTest::testFullBaseURL() back into place for CLI test reporting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6762 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 15:11:18 +00:00
DarkAngelBGE
85cd5adaf1 changing numeric check in TimeHelper::wasWithinLast to remove the use of a php extension
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6761 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 15:04:02 +00:00
DarkAngelBGE
44fae51ce8 aggregate code coverage for groups
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6760 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:41:27 +00:00
gwoo
3263c0bc81 fixes #4571 Helper::clean() returns null if passed empty array or string.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6759 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:41:15 +00:00
DarkAngelBGE
0628b24760 fixing the time helper leap year problem,
adding tests to time helper to bring it close to 90% coverage

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6758 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:38:03 +00:00
DarkAngelBGE
25033f1599 removing two Router::url() relevant test cases for cli test reporting
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6757 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:35:39 +00:00
DarkAngelBGE
c74b83ca7f adding Socket::reset() and refactoring HttpSocket to use it,
adding tests for socket class to get it up to 90+% coverage

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6756 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:33:35 +00:00
nate
f96379ea36 Refactoring Router test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6754 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 14:19:19 +00:00
the_undefined
9154ef1953 Foreign character support for Inflector::slug, fixes #3492
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6753 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 13:39:49 +00:00
the_undefined
268bb42a02 Made HttpSocket::decodeChunkedBody a little more forgiving, fixes #4523
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6752 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 12:42:15 +00:00
the_undefined
9097b25111 Fixed failing HttpSocket tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6751 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-05 12:38:33 +00:00
nate
b9cfc9ecf3 Correcting handling of empty URLs with full base, fixes #4470
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6750 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-04 04:34:29 +00:00
nate
f75da65bda Fixing manual primary key insert in model test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6749 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-03 16:35:03 +00:00
nate
32ea41a90e Correcting MSSQL limit/distinct handling, correcting date/time handling, fixes #4352, fixes #1778
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6748 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-03 14:15:47 +00:00
mariano.iglesias
ce31e77574 Continuing refactor of FormHelperTest to use assertTags for tag testing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6747 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 22:09:16 +00:00
mariano.iglesias
c585658c27 CakeTestCase::assertTags() now allows regular expressions for an entire attribute / attribute set
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6744 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 19:35:12 +00:00
gwoo
6b4fe0a1a2 adding dispatcher test for full page caching, closes #4515
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6742 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 05:55:48 +00:00
gwoo
7ab5c20577 some clean up related to testsuite shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6741 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 05:39:36 +00:00
gwoo
48f0131d50 closes #4552, error test disabled when run from console
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6740 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 05:37:19 +00:00
gwoo
2c061ede2b updating router test case, closes #4553 where FULL_BASE_URL is not defined when test is run from console
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6739 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-01 04:54:55 +00:00
nate
f8f1380bcd Correcting default value handling in model fixtures; updating test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6737 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-30 19:19:16 +00:00
DarkAngelBGE
471b6b0e2d coverage manager fix windows IE styles,
testsuite help page typo fixes #4551


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6736 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-30 14:08:29 +00:00
DarkAngelBGE
f9ec1e752d code coverage analysis for cli,
fixing CliReporter extending SimpleReporter and not TextReporter (to enable the printing of exceptions in cli)
some minor refactorings

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6735 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-29 21:03:51 +00:00
DarkAngelBGE
e38afee93d code coverage support for plugins
typo fix in testsuite shell

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6734 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-29 18:24:52 +00:00
DarkAngelBGE
facf6141d0 code coverage css refactorings
code coverage html diff view (which is the default view now)
refactorings for CodeCoverageManager
adding tests for html view, html diff view and a bunch of others

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6732 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-28 18:02:34 +00:00
gwoo
1526a7647a adding console/cake.php test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6731 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-28 14:39:52 +00:00
mariano.iglesias
f7384bca87 Removing extra check for closing tag in assertTags().
Continuing with FormHelperTest refactoring.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6730 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 18:44:01 +00:00
mariano.iglesias
3180aecb95 Initial refactor of FormHelperTest to use assertTags for tag testing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6729 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 15:09:41 +00:00
mariano.iglesias
b7ec7dbbad Allow whitespaces between tags in assertTags()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6728 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 14:51:44 +00:00
nate
b0568e7ace Adding schema introspection tests to Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6726 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 14:39:34 +00:00
mariano.iglesias
3f0b8217ec Allowing regular expressions as part of the tag construction in assertTags()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6725 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 14:28:00 +00:00
mariano.iglesias
2902969504 Allowing multiple closing tags of the same type for assertTags()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6724 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 14:12:33 +00:00
mariano.iglesias
fae3b0386a Adding support for pattern based attribute values in assertTags()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6723 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 13:44:02 +00:00
nate
db2c2c02d1 Adding test cases for uncovered Inflector methods, refactoring tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6722 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 12:40:47 +00:00
nate
9bab2440e7 Adding Dispatcher test cases for POST data handling and method overrides
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6721 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 11:43:26 +00:00
nate
eb25e3505a Adding test cases for uncovered RequestHandler methods
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6720 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-26 11:11:27 +00:00
nate
0ff44a2ab7 Consolidating Configure and App class tests so test files match, per standard convention
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6718 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-25 01:39:30 +00:00
joelmoss
e1ffd25d49 Added tests for Model::__doThread and to prove #3924 which seems to already have been applied to the core. Closes #3924
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6717 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-24 14:12:36 +00:00
joelmoss
f9ea98e746 Changed Router tests to use static method calls to reflect actual usage in applications. Fixed the __resourceMapped call in Router::mapResources and added tests to prove it is assigned correctly. Fixes #4530
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6716 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-24 13:41:11 +00:00
DarkAngelBGE
2ca68ab3a8 first version of code coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6715 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 18:25:03 +00:00
nate
358a613243 Fixing conditions quoting in DboSource, closes #4508
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6714 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 15:24:57 +00:00
joelmoss
7f6e54ea3a Validation now supports error messages on multi record forms. Added tests to support this. Closes #4499. Thanks jose_zap
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6713 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 14:14:58 +00:00
joelmoss
a0af56f923 Removing inline comments
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6712 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 13:58:26 +00:00
joelmoss
8fa2d1cf9c Added tests for TextHelper::truncate. Truncate now also fully respects HTML tags and characters if $considerHtml is passed and true. The third parameter of truncate can now also be an array consisting of any of the remaining params.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6711 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-23 13:23:12 +00:00
the_undefined
aee33deb3a Implemented CakeTestCase::assertTags
Replaced some regex in Form helper test with it

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6710 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-22 19:53:00 +00:00
the_undefined
586bcb8f28 Fixed Set::merge warning when calling it from a static function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6709 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-22 17:18:05 +00:00
nate
42083e0a1b Refactoring insertMulti() for DboSource and drivers, updating Model test for non-transactional db's
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6707 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-21 12:31:28 +00:00
joelmoss
f91f90df71 Added tests for Set::enum
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6706 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-20 22:26:34 +00:00
nate
648d01e2e6 Adding test cases for HtmlHelper::charset()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6705 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-20 12:02:58 +00:00
the_undefined
ee94d5662c Added persist feature to routing, allows namedArgs to be auto-populated for reverse routing based on current request
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6704 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 20:57:23 +00:00
nate
296e8989ba Adding GET/PUT/DELETE method checks to Security component, refactoring adding tests, closes #4231. Thanks joelmoss.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6703 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 19:25:49 +00:00
mariano.iglesias
d412d7094f Fixes #4467, issue with 'atomic' on saveAll not properly rolling back transaction. Thanks amit for the test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6702 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 17:33:17 +00:00
nate
b7774103f8 Removing extraneous error catching from Dispatcher and View tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6701 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 13:43:07 +00:00
nate
16bfee9831 Correcting issue in Model::__save() to prevent overwriting of existing record data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6700 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-19 13:30:11 +00:00
joelmoss
f34ae31184 Modified relevant test cases to use the refactored SecurityComponent:__methodsRequired
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6699 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 18:16:20 +00:00
joelmoss
4ced59868a Adding test cases for additional require methods or the remaining HTTP verbs/methods. Refs #4231
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6698 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 13:25:47 +00:00
the_undefined
e46425f759 Fixed bad test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6696 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 11:25:03 +00:00
joelmoss
54121efb3e Adding test case for Model::saveAll, to allow it to return the results of each record save in an array, if 'atomic' option is false. This means we can now see which records failed and which were successful. Refs #4400.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6695 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 11:06:41 +00:00
nate
8756f0d471 Adding test case for generating full-base absolute URLs, disproves and closes #4470
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6694 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:58:14 +00:00
nate
0793138c6c Fixing SELECT DISTINCT queries for SQL Server + misc schema fixes, closes #4352
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6693 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:27:58 +00:00
nate
fc92ea039a Simplifying default Debugger output, fixes #4066
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6692 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 06:01:35 +00:00
nate
3e28323667 Fixing conditions quoting in DboSource::conditionKeysToString(), closes #4368
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6691 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 05:39:54 +00:00
mariano.iglesias
953c778f5f Adding tests to FormHelper including generating custom names for checkbox elements, closes #4479
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6688 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 00:58:47 +00:00
nate
f6103830c3 Adding prepared statement support to Model::query(), closes #2069 (thanks Mark Story)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6687 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-18 00:30:32 +00:00
the_undefined
5c0b72db85 Added support for controlling namedArg behavior on routes level, fixes #4451
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6686 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 23:14:49 +00:00
mariano.iglesias
ab3b90503f Fixing issue in Security component with modeless field names, fixes #4454. Thanks vuego for the test and patch!
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6685 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 22:51:40 +00:00
mariano.iglesias
5f8641aac9 Adding test to show afterFind being called from Model::find('list'), closes #4456
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6684 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 22:30:25 +00:00
mariano.iglesias
9af317b1b4 Adding documentation to show result of Set::reverse() with non-objects. Fixing commented out test for Set class and adding more tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 22:01:59 +00:00
tclineks
2262e5803c fixed removal of test model instance from registry
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6681 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 20:33:54 +00:00
tclineks
f99c8996e3 added test for FormHelper::create with non-standard primaryKey. disproves and closes #3942
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6680 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 20:31:49 +00:00
the_undefined
db96a250d1 Fixed :first / :last selector issues in Set::matches
Refactored condition filtering to respect context altering conditions in Set::extract
Fixed some bad test cases

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6679 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 15:48:55 +00:00
nate
8f3a2c6022 Refactoring model constructor
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6678 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-17 13:10:27 +00:00
mariano.iglesias
d64e94e264 Fixing issue where AjaxHelper::link() would produce non-XHTML compliant links
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6677 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 22:17:11 +00:00
mariano.iglesias
1c96dd757f Fixing PHP notice with string parameter
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6675 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 20:25:36 +00:00
mariano.iglesias
31eb02db28 Removing redundant code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6672 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 20:22:07 +00:00
mariano.iglesias
4acac55cf2 Fixing issue with CakeTestCase::testAction not returning view. Added documentation for usage. Getting rid of some function aliases.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6671 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 20:16:52 +00:00
the_undefined
87d77f046b Added :first and :last selector to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6670 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 20:15:50 +00:00
the_undefined
c154636723 Added all-attribute selector support to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6669 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 19:48:55 +00:00
the_undefined
fc8611b003 Added support for regex modifiers
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6668 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 19:40:01 +00:00
the_undefined
5fe0038a74 Added regex match support to Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6667 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 19:36:19 +00:00
the_undefined
f6c30745fe Fixes #4485
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6666 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 19:12:31 +00:00
nate
ba0a60fdbd Correcting spelling of Validation test method, fixes #4430
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6665 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-16 01:17:53 +00:00
gwoo
3c4352983d adding test element
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6663 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-15 16:08:10 +00:00
gwoo
561f1deee0 adding test case, closes #3132
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-15 16:06:50 +00:00
the_undefined
4679dc9a12 Added support for dot char (selecting the current context node)
Fixed some more issues and added more tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6660 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-14 11:08:45 +00:00
the_undefined
9f040bd395 Modified Set::extract to be available from combine and other functions as well
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6659 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-13 18:46:27 +00:00
the_undefined
de4807e726 Fixed PHP warning showing up on some extract queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6658 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-13 13:32:58 +00:00
the_undefined
1fdd44f6b2 Added support for conditions on multi-nested numerically indexed items
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6657 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-13 13:27:12 +00:00
the_undefined
593c4d7245 Fixed issues with Set::extract and multiple numerically indexed nestings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6656 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-13 13:05:52 +00:00
nate
c7677c2a5e Fixing incorrect selection of parent nodes in ACL, fixes #4324
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6653 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-11 04:59:52 +00:00
nate
a89beea029 Correcting issue with permissions being incorrectly overwritten in ACL, fixes #4190
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6651 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-10 13:19:10 +00:00
nate
7e68ab152c Correcting timestamp issues in JavascriptHelper::link(), fixes #4441
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6650 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 19:08:04 +00:00
gwoo
0c125f362e updating debugger test to make it more useable/readable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6648 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 18:57:58 +00:00
the_undefined
4b19d4c38d Added support for final characters in multi param route elements
Fixed issue with reverse routing and falsely escaped route regex

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6647 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 18:26:20 +00:00
gwoo
2071ae1656 adding case for default params to controller.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6645 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 15:34:33 +00:00
phpnut
89c8467e89 "Fixes #4408, Options for a Behavior are not being reset for associated models using the same behavior"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6642 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 04:10:27 +00:00
phpnut
85f2946c36 "Fixes #4349, Correct usage of \"AND\" and \"and\" for conditions"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6641 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 02:24:09 +00:00
phpnut
1250c6e0cc "Adding patches and test from #4447.
Closes #4447, Multiselects' hidden input should not have an id attribute.
Thanks sarimarton"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6640 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 01:39:10 +00:00
phpnut
def8f8aad1 "Removing inline comment"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6639 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 01:35:04 +00:00
phpnut
d0d001d6dd "Added patches from #4413, closes #4413. Thanks maular."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6638 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-09 01:34:25 +00:00
mariano.iglesias
4b25239298 Adding router test case for URL generation with prefixes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6635 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-05 14:21:33 +00:00
mariano.iglesias
33a3a27fd1 Adding more tests to paginator using admin route
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6634 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-04 23:55:02 +00:00
phpnut
a138ae3d63 "Fixing use of array('minuteInterval' => #);
Proper usage is array('interval' => #); but for backwards compatibility this fix has been added"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6633 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-04 12:48:13 +00:00
phpnut
2bfad1bf41 Closes #3817
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6631 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-03 19:01:51 +00:00
phpnut
d14b50fc92 "References #4394, additional fixes to multi record forms.
Added additional test cases"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6629 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-03 06:48:56 +00:00
phpnut
f2941a660e "References #4239 Added test from ticket to showing ticket is invalid.
Fixes #4394, fails when the hasMany multi-record form contains hidden fields.
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6627 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-03 02:29:17 +00:00
phpnut
06d06c85d9 "Fixes #4339, Providing null for variable with underscores leads to camelcased variable in view"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6626 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 20:14:06 +00:00
gwoo
82cd036672 adding acl and auth group test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6621 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 16:05:54 +00:00
gwoo
1346224b1f updating auth test, closes #4398
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6620 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 15:56:19 +00:00
phpnut
c5f06674fa "Fixes #4394, SecurityComponent::!__validatePost fails on hasMany multi-record form.
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6618 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-02 06:08:55 +00:00
nate
80340da3c5 Removing parameter merging in pagination links, fixes #4312
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6616 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-01 03:44:16 +00:00
nate
c4f03bf237 Updating View test case for rendering refactor
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6615 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-04-01 03:34:57 +00:00
phpnut
067e6a5695 "References #4413, test proves ticket is invalid"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6614 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-31 17:49:39 +00:00
phpnut
c849dd773a "Fixing inflection of people uninflected plural.
Renamed PersonFixture.
Fixed ModelTest::testHabtmFinderQuery() test when prefix is used."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6612 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-30 04:35:05 +00:00
phpnut
2eb120486b Renaming people fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6611 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-30 04:26:28 +00:00
phpnut
ad19583f26 "Extending the CakeTestModel instead of AppModel"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6610 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-30 03:59:38 +00:00
phpnut
69dd26dc75 "code formatting"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6608 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 15:43:14 +00:00
phpnut
2c5ac9cfb9 "Fixes #4232, Problem with stripslashes in cached files.
Added tmp directory to tests/tests_app
Added file to mimic windows cached file
Added test case"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6607 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 15:34:56 +00:00
phpnut
0ef028bc1f "Fixing self associated joins.
Added additional test cases and correct one bad test case.
Fixes #4364, !__mergeAssociation() in dbo_source fails to merge belongsTo properly"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6606 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 11:17:24 +00:00
phpnut
e65f44bed2 "Fixes #4001, 'money' validation uses invalid regular expression syntax"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6605 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 06:44:40 +00:00
phpnut
657c28403a "Fixes #4377, Folder class bug for non-existent path"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6602 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 04:05:05 +00:00
phpnut
d8d7b899a1 "Adding additional test to show how to load files that do not follow directory naming or file naming conventions.
References #4319, References #4334"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6600 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-26 03:02:13 +00:00
phpnut
92c466c0dc "Fixes #4336, Setting a Configure key to null causes php warning."
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6598 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-22 21:55:44 +00:00
nate
819cd1d667 Re-removing the Auth vulnerability re-introduced in [6593]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6595 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-20 19:18:52 +00:00
nate
d60191a1f6 Fixing vulnerability in field quoting in DboSource
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6594 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-20 16:40:45 +00:00
phpnut
47eb421091 "Adding fix to Auth::identity(); for errors thrown on invalid input.
Added tests for invalid input.
Debug is turned off in this area of code because of the CakePHP errors handling, messages could cause long delays and exception noticed when debug > 0."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6593 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-20 07:17:37 +00:00
nate
c286a7293f Adding test cases for TreeBehavior scoping
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6591 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-19 00:54:32 +00:00
the_undefined
26489efe19 Changed XPath behavior for mixed numeric and string keys
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6590 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-18 15:30:00 +00:00
phpnut
1b4c445cad "Fixes #4256, tablePrefix + HABTM with defaults == wrong joinTable"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6585 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 07:18:42 +00:00
phpnut
a6fbe05964 "Initial refactoring of BehaviorCollection.
Fixed vendor path being the first searched directory for files, this caused unexpected results.
Fixed failing DboSource tests"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6583 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 05:44:20 +00:00
gwoo
8bbdbd4d25 adding ClassRegistry to Configure test group
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6577 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-16 01:10:34 +00:00
nate
07d2b0d2d3 Fixing AjaxHelper::sortable() options and filtering Ajax callbacks from link options in AjaxHelper::link(), fixes #4279, fixes #4274
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6576 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-15 22:48:46 +00:00
nate
38c7dab9f5 Fixing RequestHandlerComponent::prefers() when using extensions, fixes #4056
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6575 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-15 05:48:56 +00:00
nate
29fa485140 Adding extra fixes, tests for Set::_ _flatten, fixes #4297
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6573 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-15 05:30:30 +00:00
nate
a282e1152f Adding test cases for HABTM limit fix (#4204), and disproving HABTM save issue (#4194)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6571 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-15 05:08:06 +00:00
the_undefined
3daf495488 Added initial XPath support for Set::extract
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6567 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-14 01:05:56 +00:00
nate
360b91eea7 Fixing HABTM associations on non-standard keys, fixes #4219, refactoring DboSource::calculate()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6565 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-13 03:11:29 +00:00
nate
3ff5bfa829 Fixing default value for float columns in Postgres, fixes #3963
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6564 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-13 03:06:14 +00:00
phpnut
acc79fe0f3 "Closes #2508, Allow requestAction to use array urls
Fixes #4325, error pages no longer displayed since changeset
Closes #4329, remove am() usage in core"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6563 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-12 21:19:31 +00:00
nate
6fe1e62555 Implementing JavascriptHelper::$inBlock, docblocking JavascriptHelper properties, adding fix for AjaxHelper::sortable() 'overlap' option, fixes #4292
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6561 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-12 03:57:54 +00:00
the_undefined
7a769f68ca Restricted named route element to contain no special chars other then '_'
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6559 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 15:19:46 +00:00
nate
2c3ec768c7 Updating model tests for Postgres, fixing Postgres metadata handling for UUID primary keys, adding Postgres tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6558 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 05:22:17 +00:00
nate
c1c35b2e13 Refactoring DboSource - removes all SQL from Model, refactoring transaction handling
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6557 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 02:44:33 +00:00
phpnut
d326c6eefe "Adding test case for news"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6556 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-11 02:22:38 +00:00
gwoo
57a61f8f82 fixes #4165, string conditions with translate behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6552 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 07:01:01 +00:00
nate
bacb74a6ef Adding fix for Set::reverse() XML handling, fixes #4275, plus fixes from previous commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6551 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 06:05:31 +00:00
nate
35397debc8 Enabling Cache::write() to handle 'empty' values, fixes #4090
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6549 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 04:11:20 +00:00
nate
bd929c45df Adding test case for validation error display with FormHelper::input(type => password), disproves #4242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6548 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 03:54:15 +00:00
nate
204d5109b9 Adding test case for ambiguous column detection in TreeBehavior::generateTreeList(), disproves #4053
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6547 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 03:41:04 +00:00
phpnut
5374807164 "Fixes #3846, Security blackhole when no radio selected
Fixes #3920, Multiple select w/ checkboxes issues warning when all are unselected
Fixes #3962, validation POST never pass when select multiple is submit
"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6546 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-10 00:25:59 +00:00
gwoo
11b48f865d adding dispatcher test for cached pages with camel cased names, closes #4086
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6545 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 22:39:29 +00:00
nate
8fc104b44b Correcting column quoting for custom-aliased fields, fixes #4228
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6543 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 22:15:08 +00:00
gwoo
be09e5a90d closes #3915, Folder delete does not require path
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6542 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 22:14:12 +00:00
nate
98831d27fe Enabling mutli-record validation errors in FormHelper, fixes #4076
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6540 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 18:28:38 +00:00
gwoo
dd10cb191f fixes #3788, paginator numbers first and last issues
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6538 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 16:42:04 +00:00
nate
db1e079e5f Enabled specifying of join type in hasOne/belongsTo associations, fixes #4085
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6537 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 08:47:42 +00:00
nate
9e37b6fc26 Adding test cases for saving hasMany associations with saveAll(), ref #4035
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6536 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 07:59:23 +00:00
nate
9a6029f03e Fixing fully-qualified form field references, fixes #4068
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6535 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 07:36:34 +00:00
gwoo
b1f5b76f98 changing test suite layout
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6534 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 07:04:24 +00:00
nate
e87d4e80dd Refactoring behavior method dispatch handling to work on PHP4, fixes #4296, refactoring schema test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6532 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 06:24:40 +00:00
nate
12ae20d228 Adding DbAcl test case for ticket #4288
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6530 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 04:19:58 +00:00
gwoo
10bdc235ee updating test suite for plugins, closes #4107, closes #2777. requires update to test.php.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6527 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-09 04:07:56 +00:00
nate
dfe2ead19e Removing methods from Set test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6524 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 20:37:55 +00:00
nate
ae57eecc19 Adding test and patch for bug in Set::_ _flatten(), fixes #4297
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6523 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 20:33:22 +00:00
nate
58e6da6a5b Adding test case for custom 'finderQuery' for HABTM associations. Disproves #4100
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6521 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 20:08:15 +00:00
nate
c096e20350 Fixing XmlHelper::elem() when rendering non-empty content values, fixes #4300
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6520 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 18:39:00 +00:00
nate
82f4427b8b Fixing '0' default values in fixture generation, fixes #4295
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6519 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 17:27:32 +00:00
gwoo
c1ea4dff88 fixes #3969, schema name for app dirs with special characters
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6518 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 16:30:44 +00:00
nate
24ea731e7f Making parsed parameters always show up at the beginning of 'pass', closes #4299
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6517 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-08 16:14:51 +00:00