Commit graph

3669 commits

Author SHA1 Message Date
the_undefined
e5d7f5279e Merged relevant test cases from 'alkemann' into tree test and made them pass, fixes #4493
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6939 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 03:03:44 +00:00
mariano.iglesias
775707838e Fixing docbloc in Containable, fixing issue where no notices and invalid bindings were throwing PHP warnings, added tests, fixes #4683
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6938 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:40:13 +00:00
the_undefined
71790792d0 Applied patch by 'preloader', closes #4561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6937 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 02:31:26 +00:00
the_undefined
abe853a978 Made Auth component find conditions more explicit, closes #4680
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6936 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:49:51 +00:00
mariano.iglesias
943ede837c Fixed DboSource test to use table prefixes based on the DB connection.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6935 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:34:13 +00:00
the_undefined
521986b27f Fixed problem with boolean values passed into connectNamed
Added documentation


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6934 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 23:08:49 +00:00
the_undefined
847811701c Fixed Router::connectNamed, added enhanced named parameter control, closes #4451
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6933 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:52:28 +00:00
mariano.iglesias
35391deff5 Renaming configs to config and fixing Acl test.
Bringing Configure test coverage up to 82%, the best that can be achieved without calling __loadBootstrap(true) which will cause constant collision.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6932 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 22:51:29 +00:00
nate
b7fbf8f080 Refactoring database transaction handling, fixing Model test for SQLite, all tests now pass
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6931 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:19:08 +00:00
nate
fe3f899f46 Refactoring CakeTestCase so that skipIf() can also be called from within tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6930 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 20:17:28 +00:00
mariano.iglesias
f900ecc1ef Removed unneeded function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6929 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:56:00 +00:00
mariano.iglesias
660d5bb804 Allowing CakeTestCase::assertTags() to receive strings as expectation.
Removing default value in AjaxHelper::options() and AjaxHelper::__optionsForAjax() since it always require a parameter.
Using Object::stop() instead of exit() in AjaxHelper::afterRender().
Bringing AjaxTest coverage to 88%

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6928 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 19:51:30 +00:00
DarkAngelBGE
032990a364 bringing the validator to 93% coverage,
adding default regexes for Validator::phone(), Validator::postal() and Validator::ssn() if no default regex is supplied, but also no country

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 15:47:35 +00:00
DarkAngelBGE
45ed8ffeff bringing the file class to almost 90% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6926 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 14:48:48 +00:00
TommyO
291781ab5a Added new tests, failing on setup() mangles configuration, onError never triggered, find callbacks not triggered in recursive model finds
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6925 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 12:49:57 +00:00
DarkAngelBGE
010a083d1c bringing the folder class to 84% coverage
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6924 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 11:26:00 +00:00
DarkAngelBGE
f26d9b388e adding numerical test case refs #4589,
adding tests for DbSource->length,
fixes #4150,
adding tests for DbSource->buildIndex(),
adding tests for DbSource->buildColumn(),
adding test for requestAction using a plugin,
adding DboSource->introspectType fixes #4224, refs #4589, 



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6923 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 09:22:42 +00:00
nate
6bed503b56 Refactoring schema handling for SQLite and Postgres drivers. Non-primary key indexes are now created properly. Fixed testing bugs in db drivers.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6922 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:42:36 +00:00
the_undefined
e1fc6ad5fd Refactored parts of String::insert into String::cleanInsert
Added a html clean method and test cases


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6921 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 06:11:51 +00:00
the_undefined
550b85fdbb Improved Inflector::slug, closes #4678
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6920 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 05:03:12 +00:00
nate
8313fef72d Changing recursive setting in Auth user lookup query, allows $userScope to use joins, fixes #4665
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6919 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:49:54 +00:00
mariano.iglesias
a33cfd0b98 Added Containable behavior, a mix of the original Containable and Bindable behavior.
Allows find operations to define restrictions on what models to get based on the 'contain' parameter, including ability to override binding settings on the fly. Go through the test cases to get a crash course about some of the available functionality.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6918 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 04:36:09 +00:00
mark_story
f011839cfe Update dbo_adodb.php. Passes 452 tests in model.test
fixes #4133

Added test for dbo_adodb as well

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6917 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-18 00:20:24 +00:00
the_undefined
d9e6ee6494 Fixed a problem in Configure causing the File engines default path to be ignored , closes #4673
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6916 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:47:06 +00:00
the_undefined
7e4224a1f9 Fixed a problem in App::__overload causing issues in PHP4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6915 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:45:25 +00:00
the_undefined
d64bf9b3d8 Marked old cache function as deprecated
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6914 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 21:44:17 +00:00
AD7six
72e54d4780 adding test case to verify permission inheritance functions correctly. Fixes #4464
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6913 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 19:41:32 +00:00
joelmoss
64e68c9b7c Text helper highlight method now handles HTML tags correctly. Closes #2242
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6912 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:45:24 +00:00
AD7six
ec12b91657 updated acl test debug method to display individual permissions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6911 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 18:23:05 +00:00
AD7six
56ce3c0f1c adding debug function to acl test case to aide checking permissions whilst writing/debugging tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6910 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 17:33:08 +00:00
mariano.iglesias
05047a90b0 Making Model::resetAssociations public and changing tests that use it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6909 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 16:23:46 +00:00
gwoo
bc6a8e03b5 fixes #4671, skip DboOracle tests when driver is not set. Clean up other dbo tests to be consistent
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6908 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 13:59:29 +00:00
phpnut
10d555d5e2 "Adding additional tests for I18n class.
Removed unused code from the class.
Fixed use of invalid translations in a po file"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6907 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 06:05:08 +00:00
mark_story
926b88a53a Updated dispatcher test for case described in #4660
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6906 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 03:52:08 +00:00
phpnut
638b06ff85 "Adding test coverage for I18n class.
Adding ability to change translations on the fly
	Example: Configure::write('Config.language', 'locale');
Same setting can be used to define you own locale
	Example: Configure::write('Config.language', 'somename');
Added ability to set additional directory paths for locale directory
	Example: Configure::write('Locale.path', DS . 'directory'. DS . 'locale');
Fixed merging of core translations, if present."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6905 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-17 00:48:34 +00:00
gwoo
8124d166ff updating auth url for login actions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6904 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 18:17:04 +00:00
phishy
6c44d00642 Fixed #4206 - lastError now works
Fixed #4181 - model sequence name now respected
added constraint() method to enable/disable
added truncate() to aid in test suite integration
hacked name() to work with ACL


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6903 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:42:13 +00:00
phishy
518f26a269 added test case for DboOracle and two regression tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6902 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:23:30 +00:00
gwoo
8a236492a0 adding Object::stop(), updating auth and auth.test to use
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6901 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 15:23:00 +00:00
joelmoss
3d251e4145 Replacing vendor() function with App::import()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6900 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:41:39 +00:00
DarkAngelBGE
e42076b9c2 adding CLI exit code to testsuite shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6899 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 08:00:46 +00:00
nate
d9a7170808 Adding validation message fixes for Model::saveAll() and hasOne associations, fixes #4561
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6898 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 06:03:33 +00:00
nate
0f1e075d68 Adding fix for Model::saveAll() with 'validate' => 'first' and hasMany records, fixes #4387, adding test cases to disprove #4494
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6897 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 05:31:14 +00:00
mark_story
5893fd3669 Added additional test using ajaxLogin with Dispatcher. Currently fails.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6896 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-16 01:33:53 +00:00
gwoo
84739652c8 adding fix for windows paths in view, thanks renan`saddam for reporting and debugging
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6895 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 23:57:24 +00:00
TommyO
de086b1be3 Minor code cleanup, removing remnants from an older version that no longer apply
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6894 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 20:17:58 +00:00
gwoo
1623fa89f8 updating auth, fixes #4417 ajaxLogin rendering
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6893 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 19:20:13 +00:00
gwoo
3b524b70d5 removing icons from test suite
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6892 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 18:18:46 +00:00
phpnut
0cc0580fff "Fixing code CodeCoverageManager so code coverage can be tested when cake core is outside of the ROOT path or set in the php.ini
Cleaned up code structure."

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6891 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 17:27:57 +00:00
gwoo
17379fff80 fixes #4495. updating cake.php and cake.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6890 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 15:40:35 +00:00