Commit graph

372 commits

Author SHA1 Message Date
nate
5c48a926e7 Adding model test fixture and additional Router test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5527 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 16:26:04 +00:00
nate
3b0099b877 More Router tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5526 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:38:28 +00:00
nate
32e61a8adf Adding Router test case for Ticket #3028
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5524 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:28:53 +00:00
nate
ad75ecea81 Fixing and refactoring reverse routing, and adding URL generation fixes (Ticket #3034)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5523 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-15 14:18:39 +00:00
nate
c3dc8cb827 Implementing automatic join models for HABTM associations, adding table prefix fix for Ticket #1965
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5522 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-14 23:12:24 +00:00
nate
214ad6346f Refactoring Router and fixing route matching, adding tests (Ticket #3033)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5521 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-14 18:51:34 +00:00
nate
1911b1d7a5 Implementing custom array value formatting in Set::combine() and Model::generateList()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5518 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-13 20:59:49 +00:00
nate
8d2d9d8684 Refactoring FormHelper::__selectOptions() (Ticket #1312) and adding tests for multiple select boxes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5516 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-13 20:20:01 +00:00
nate
a98afd7e5c Adding Router test case for Ticket #3055
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5514 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-12 22:52:15 +00:00
nate
823672217a Implementing Set::format() to combine extracted array values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5512 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 21:32:25 +00:00
dho
ee3658894e Applying patch from ticket #2236 plus adding tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5506 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 14:47:53 +00:00
phpnut
aabbf0ed85 Adding patch from #2908, fixed to read the response from the server
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5505 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 13:31:12 +00:00
AD7six
3f1a49d1cf Remove debug code included in previous commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5503 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-09 20:34:29 +00:00
AD7six
d2ae3940ce Adding test cases for updated tree behavior
Tests added for 
	Ticket 3037 (moveUp moveDown do not work correctly with $number > 1)
	Ticket 2991 (del returns false if the tree behavior is used)



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5502 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-09 20:30:33 +00:00
nate
e98d6cbb51 Adding class listing methods to Configure class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5498 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-07 15:38:20 +00:00
gwoo
889e62881b added option to modify element cache name, #2327, see tests. Adding auth key for flash message, #2996
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5497 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-07 07:44:12 +00:00
gwoo
020841b989 fixing File cache engine expire #3006
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5492 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-05 17:13:03 +00:00
gwoo
c84bbea48b fixing File cache engine expire and path, #3006 and 3021, adding tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5491 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-05 16:47:03 +00:00
nate
a03b688062 Adding DboSource quoting test cases for Ticket #2922
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5489 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-04 17:26:23 +00:00
gwoo
2d7be853ce adding fix for Folder path, #2983
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5483 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-04 05:31:36 +00:00
phpnut
64325bd60d Adding fix for failing routes for plugins
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5475 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-31 05:00:24 +00:00
nate
cfd4e0f3d7 Fixing Router issue with named arguments being dropped from matched routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5473 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-30 13:15:59 +00:00
nate
ad53804b60 Adding SQL function quoting fix in DboSource (Ticket #2987)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5472 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-29 12:21:41 +00:00
gwoo
d6c4229d81 updating router test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5471 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-27 17:51:33 +00:00
nate
dee2ea4f68 Updating fix for empty parameter passing in Router; adding test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5470 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-27 13:32:26 +00:00
gwoo
fc9503e473 fixing bug with url parsing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5468 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-27 02:46:30 +00:00
nate
9a915e90ef Applying correct fix for Ticket #2917, updating FormHelper test cases, and adding Helper test group
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5467 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-26 14:23:38 +00:00
gwoo
64b5f897e2 updating auth component
added any object authorization
AuthComponent::object replaces AuthComponent::objectModel, add AuthComponent::hash, see #2894


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5465 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-26 06:43:44 +00:00
dho
1bda1d2ada Avoiding to add 'type="checkbox"' twice (ticket #2917)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5462 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 14:50:01 +00:00
dho
7c5b93e34e Validate "0" as alphanumeric value (ticket #2972)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5461 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 14:22:14 +00:00
phpnut
549d86ac23 Refactoring dispatcher.
Added test for changes to Dispatcher.
Updating Model::_ _saveMulti(), moved the insert statement to DboSource::insertMulti() this will allow database that do not support multiple inserts in one statement to save data.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5460 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 04:38:28 +00:00
phpnut
c8dca3c666 Removing echo statement in router.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5456 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 14:40:34 +00:00
nate
7b4264b68c Adding header detection to Router, and implementing prototype REST routes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5454 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-24 13:50:50 +00:00
nate
5ab89f495f Refactoring Router and improving route generation efficiency
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5450 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-22 04:07:06 +00:00
nate
2664ed2ee4 Fixing trailing slash in URL when extension is used (Ticket #2934)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5439 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-17 13:45:20 +00:00
phpnut
d09a59c5df Adding tests for cake/libs/controller classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5436 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 20:45:29 +00:00
phpnut
c1ef9e5944 Adding test for cake/libs/controller/components/
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5435 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 20:07:38 +00:00
phpnut
4f75a5e89e Adding tests for cake/libs/cache classes
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5434 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:52:31 +00:00
phpnut
65f5f00067 Adding tests cases for all classes in cake/libs
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5432 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:26:37 +00:00
nate
467348357e Changing CacheHelper test case class name
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5431 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 19:03:04 +00:00
nate
8dd6c78754 Modifying HtmlHelper::style() for use in attribute arrays, adding core helper tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5429 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 17:33:03 +00:00
phpnut
1df4249d54 Adding fix for #2882, Sanitize::escape() fails for numbers.
Added test for #2882.
Corrected header files in tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5428 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 17:02:55 +00:00
phpnut
9c3dfee2d3 Disabling AuthTest until code is wrote to use temporary tables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5426 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 06:44:04 +00:00
gwoo
a6782f0b72 updating Auth component and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5423 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 05:27:04 +00:00
gwoo
3769fa796d updating auth, acl and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5410 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 21:01:31 +00:00
phpnut
1963c3b501 Removing code left from testing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5398 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:53:23 +00:00
phpnut
8229587cfe Adding fix for #2837, dbo_source looping bug on parsing fields, can't use database function
Added test for #2837

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5397 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:29:37 +00:00
phpnut
b2805cff95 Skipping EmailTest::testBadSmtpSend() and EmailTest::testSmtpSend() if suite can not connect to smtp
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5396 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 02:03:52 +00:00
gwoo
16332140bf updating most tests with fixes to coding standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5395 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 01:17:57 +00:00
gwoo
8b104c6502 updating Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5394 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 01:01:16 +00:00
gwoo
25558fbd33 updating Auth test with AuthUser and fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5392 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:49:36 +00:00
gwoo
e0d8449b8a updating Auth test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5391 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-08 00:43:45 +00:00
nate
8976f07acf Adding fix for 'after' value not being rendered in FormHelper::input() (Ticket #2860)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5388 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 23:30:40 +00:00
chartjes
d8c0c67e2b Incomplete test for Auth component, committing so gwoo can work on it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5387 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-07 21:24:21 +00:00
phpnut
aca00e47c8 Fixed Inflector bug #2061
Added tests to InflectorTest

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5382 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 07:06:06 +00:00
phpnut
fb0a327a38 Adding fix for #2823, fixes Element gets different instances of helper than view in PHP4 and PHP5
Removed HtmlHelperTest::testRadio(), the HtmlHelper::radio() has been deprecated

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5379 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-06 04:31:45 +00:00
phpnut
3880f9ce13 Refactoring Set::reverse() and Model::set()
Set::reverse() will now reverse the object to an array that was created in Set::map();
Added testMapReverse() to Set tests.
Removed code in Model::set() that was no longer needed

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5373 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 18:36:49 +00:00
mariano.iglesias
cd09a7c7dd Adding option to group elements in Set::combine and making Model::generateList use Set::combine. Adding tests for Model::generateList and more tests for Set::combine
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5370 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-01 03:43:05 +00:00
mariano.iglesias
61df674db5 Adding Set::combine to allow mapping of keys and values of an array using paths
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5369 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-30 22:34:47 +00:00
mariano.iglesias
2c7f16d1f1 Adding tests for HABTM saving when parent data comes after HABTM data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5365 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 03:36:54 +00:00
mariano.iglesias
add4f3a961 Adding tests for HABTM saving, including saving HABTM data without any parent data
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5364 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-28 03:27:47 +00:00
mariano.iglesias
36e207fa1f Adding tests for del and deleteAll in Model
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5362 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 19:16:11 +00:00
gwoo
c405d3ad6b fix Paginator::numbers() seperator: #2685
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5360 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:53:38 +00:00
chartjes
6dc87a01e9 Added explanation to test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5357 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:37:12 +00:00
gwoo
c00238ec3a adding test for paginator numbers to prove fix for #2825
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5356 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:25:37 +00:00
chartjes
3755a14f54 Added in test to make sure that an SMTP server is running on port 25 on localhost
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5354 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:20:45 +00:00
chartjes
d1f6f2339e Refactored SMTP send code, cleaned up tests. Test requires local SMTP server that is working
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5353 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-27 15:12:48 +00:00
chartjes
15da6d1255 Added code to allow Email compoenent to send email via SMTP, along with test for component
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5351 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 20:29:38 +00:00
phpnut
40a47a5e90 Correcting session errors in EmailTest test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5348 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-26 04:28:24 +00:00
chartjes
32ac42c055 Added in test for smtp functionality for email component, test not complete
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5347 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 21:18:18 +00:00
mariano.iglesias
6adef29257 Adding a couple of tests to ensure proper parsing of GROUP BY queries
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5345 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-25 14:48:20 +00:00
phpnut
9ba943ed6b Adding Router::reload() to setUp() in tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5344 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 08:40:52 +00:00
phpnut
65cdc377a6 Correcting duplicate class defines in the test cases that was causing tests to fail.
Added Router::reload(); to ViewTest::setUp()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5341 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 07:44:39 +00:00
phpnut
90299c0d0e Removed extra slash in test paths.
Removed extra lines in files.
Corrected header in file

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5340 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 05:56:36 +00:00
phpnut
b7ba57c8b1 Fixing TreeBehavior so tests will work on php 4.
Removing _ _METHOD_ _ from files since it is not valid on php 4

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5337 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-23 04:16:33 +00:00
phpnut
15c8d5012e adding CakeTestModel::cacheSources = false;
corrected the class that models defined in tree.test.php extend

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5336 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 21:02:46 +00:00
phpnut
ff01b3a031 Adding enhancement and tests from #2159
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5331 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-22 05:01:39 +00:00
mariano.iglesias
496e97aaec Fixing issue #2810, AjaxHelper does not render boolean options properly, and adding tests for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5325 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 16:24:13 +00:00
mariano.iglesias
97a10184f3 Fixing issue #2713, NumberHelper does not handle some currency formatting very well
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5324 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-21 16:01:11 +00:00
phpnut
dac1bd0913 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29 Correcting code structure to standards
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
phpnut
d93d746663 Adding fix for Ticket #2795, fixes hidden field for checkbox.
Updated FormHelperTest::testCheckboxField() to reflect the correct return value

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5310 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 04:30:45 +00:00
phpnut
02d6c55d9f Adding fix for Ticket #2635, fixes Association data not correct if data is changed in afterFind()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5303 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 01:37:23 +00:00
nate
028ffae272 Fixing double merging of URL parameters in PaginatorHelper::sort() (Ticket #2692)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5291 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-17 17:01:18 +00:00
dho
d9a0aa1c69 Applying patch from ticket #2763, adding test for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5278 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-15 08:32:04 +00:00
dho
a0184d2b41 Adding test to disprove ticket #2763
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5276 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-14 15:03:10 +00:00
nate
3dbf59ece3 Fixing substring quoting in DboSource::__quoteFields()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5274 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-12 15:13:53 +00:00
nate
6866ca42a0 Adding query conditions parenthesis fix for Ticket #2663
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5267 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-09 20:32:14 +00:00
gwoo
851a834995 fixing form helper for tickets #2726 and #2659, updated tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5258 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-08 01:17:40 +00:00
phpnut
52680ffcd3 Adding fix for FormHelper::checkbox() not creating the hidden fields.
Corrected errors when multiple hidden fields used in a form.
Fixed SecurityComponent::_ _validatePost() that would invalidate a form when checkboxes used.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5238 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-04 06:11:48 +00:00
nate
72f44d48af Adding test case for Model::findAll() results modified in afterFind (disproves Ticket #2635)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5233 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-03 21:54:11 +00:00
gwoo
3acebbcecb adding pass to the default set of router params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5227 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-01 17:27:10 +00:00
phpnut
0ba769f443 Correcting date string in tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5224 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-30 01:21:58 +00:00
gwoo
05d5972dee fixing File again adding info property
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5223 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-30 00:09:14 +00:00
gwoo
151bdd04ef fixing File tests and class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5221 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-29 23:38:36 +00:00
gwoo
aa81a44bb9 updating File class and tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5211 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 16:06:49 +00:00
nate
07006c9e4a Allowing spaces in session keys (Ticket #2639)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5208 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 04:10:29 +00:00
gwoo
ae652431e9 updating file class deprecated getters, fixes for tickets #1838 and #2641, adding tests, changing Folder default directory to TMP
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5203 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-27 00:30:43 +00:00
dho
a357f30cda Fixing problem with handling "0" in NumberHelper::toReadableSize() (ticket #2654)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5195 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-26 07:22:19 +00:00
gwoo
5a0832f086 updating formHelper for #1035 adding more tests, fixing some tags the would produce spaces
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5181 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-25 03:16:47 +00:00
gwoo
8ecc250521 fixing bad tests in socket and some working in error messages
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5179 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 23:23:38 +00:00
gwoo
9667aa793a adding strfrotime to FormHelper::month #700, fix to radios which still need to be moved
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5178 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 23:14:14 +00:00
gwoo
e45062f3ef updating html helper, deprecated methods moved to bottom
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5176 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 22:50:20 +00:00
gwoo
bafd4689fe adding formHelper::checkbox
adding tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5175 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 21:44:05 +00:00
gwoo
04859e37fc typo in number test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5174 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 20:51:37 +00:00
gwoo
75f04aebd9 adding number helper format and test for format and currency
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5173 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-24 20:45:27 +00:00
gwoo
34528b40ce adding Media to inflector tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5154 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-23 17:11:00 +00:00
phpnut
84de5b6e35 Adding fix for #2614
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5145 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-21 05:15:26 +00:00
phpnut
63b2208e76 Removing inline comments in test file
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5131 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-20 06:27:09 +00:00
nate
540b1052d8 Fixing string-based URL generation inside plugins (Ticket #2588)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5123 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-20 01:40:34 +00:00
mariano.iglesias
511af227f1 Adding tests to test usage of set() & save() for editing records
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5119 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-18 17:54:59 +00:00
nate
266db033fc Updating branch with Felix's latest HttpSocket work
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5111 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-15 19:59:59 +00:00
mariano.iglesias
7a380cc0de Adding tests for 'page' and 'offset' with hasMany bindings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5109 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-15 18:47:02 +00:00
mariano.iglesias
e4fb1372c5 Adding test that fails when using page + limit and offset + limit on a HABTM binding
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5108 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-15 18:19:56 +00:00
gwoo
cec34ae6df updated folder class and test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5092 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-14 07:09:42 +00:00
phpnut
9d02c911a6 Adding tests and fixes for #2570, this corrects DboSource::conditions fails to quote mixed array/string conditions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5087 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-14 01:52:59 +00:00
mariano.iglesias
7de927eb46 Fixing and adding tests for ticket #2551
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5071 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-13 12:07:23 +00:00
phpnut
5d7ce86000 Adding fix for irregular inflections returning word in lowercase
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5065 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-13 00:28:03 +00:00
phpnut
156013f99e Added fix for #2545, fixes VALID_NUMBER does not allow negative values
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5047 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:50:42 +00:00
phpnut
6837a51f50 Adding test for #2550.
Added fix for #2550, fixes incorrect inflection of Alias

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5044 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-12 08:13:45 +00:00
mariano.iglesias
22adcb07a1 Adding possibility to specify if option values should be escaped, and adding tests for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5019 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-05 00:34:56 +00:00
phpnut
b42e908656 Adding patch from #2528, fixes validation passing when even when allowEmpty === false
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5010 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 07:13:15 +00:00
mariano.iglesias
37daaf6dfe Fixed folder test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5004 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:38:26 +00:00
mariano.iglesias
74d9a205ec Adding tests for Folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5003 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-04 00:29:33 +00:00
mariano.iglesias
383c8d36d3 Adding empty test cases for File and Folder
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5001 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 23:25:21 +00:00
phpnut
137fea94c6 Cleaning up line endings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4994 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-03 04:35:25 +00:00
phpnut
b5e3a55e03 Adding tests for #2520
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4989 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 18:37:28 +00:00
dho
9b18367fcc Fixing problem with submit options in FormHelper::end() (ticket #2516)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4987 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 12:56:51 +00:00
mariano.iglesias
8982d82c0d Adding option to send extra parameters to a custom validation and more tests for validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4980 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-02 07:48:22 +00:00
phpnut
7982208113 Reverting changes in last commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4975 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:17:27 +00:00
nate
154e3ccbb1 Refactoring FormHelper token generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4974 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 15:03:35 +00:00
phpnut
5cd13cff26 Adding additional tests for validation.
Added fix to model to pass the new tests

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4970 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 10:30:36 +00:00
mariano.iglesias
5317c80429 Restoring commented tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4966 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 03:04:44 +00:00
mariano.iglesias
d1687bbc06 Adding test to evaluate emptiness in validation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4965 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 03:03:53 +00:00
phpnut
d79f55c240 moving tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4962 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 02:40:36 +00:00
phpnut
8f929c6ff8 Fixing paths to correctly load acl models.
Updating test for acl

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4961 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-01 02:30:26 +00:00
mariano.iglesias
e2d9935a26 Added variation for a field parsing test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4952 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:27:41 +00:00
mariano.iglesias
9451c58377 Adding test for field parsing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4951 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:24:13 +00:00
mariano.iglesias
01ce8392a4 Adding tests for #2506
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4950 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 13:03:13 +00:00
mariano.iglesias
c61e30e6f2 Fixed tests for PHP4
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4943 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-30 09:52:37 +00:00
phpnut
d861587960 Adding fix for #2452 (patch from #2476).
Added tests for ticket #2452

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4927 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 11:10:11 +00:00
phpnut
5757d6b7e9 Adding fixes for test added in [4911] and [4912]
Fixed #2414 fixes findBy doesn't escape WHERE condition

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4913 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 05:37:39 +00:00
mariano.iglesias
6978359505 Adding more tests for #2414
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4912 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 04:24:47 +00:00
mariano.iglesias
5903e2226c Adding tests for #2414
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4911 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 04:18:41 +00:00
mariano.iglesias
70b9de6903 Fixing label tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4906 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 03:10:44 +00:00
mariano.iglesias
80e40d6910 Adding tests trying to replicate #2451 and more variations of fake threaded self join
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4902 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 02:25:57 +00:00
mariano.iglesias
3f3f86d62a Adding more tests for Set::extract()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4899 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:44:03 +00:00
mariano.iglesias
1a693ccc53 Fixing test for #2488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4898 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:31:50 +00:00
mariano.iglesias
0bd1a41329 Adding test for #2488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4897 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 00:56:21 +00:00
dho
efd8df1771 Applying fix from ticket #2485, adding test for it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4894 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-28 09:20:35 +00:00