Commit graph

480 commits

Author SHA1 Message Date
renan.saddam
111b886570 Removed trailing whitespaces from tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7848 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-08 02:58:37 +00:00
AD7six
b7587d2d55 fixes #5696 incorrect timestamp definition generated by Posgres schema
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7832 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 13:22:57 +00:00
renan.saddam
f4e2b3e24b Handling numeric columns unsigned. Fixes #5695.
Also added some tests to MySQL and MySQLi.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7831 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-06 02:15:12 +00:00
AD7six
2a9b8643db Correcting index detection to not include the fields from a previous index, where several mult-field indexes
exist


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7827 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-05 13:44:05 +00:00
renan.saddam
f2823e85d7 Fluxing the objects after each test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7822 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-04 01:35:09 +00:00
renan.saddam
171fa62b94 Added tests to cover bug with recursive = -1. Refs #5593.
Did a refactoring to TranslateBehavior and moved all tests from translate.test.php to models.test.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7821 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-03 23:58:44 +00:00
AD7six
3f2fa6929b changing tabs for spaces in comment block indentation
Removing address and replacing with cakefoundation url


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
588f92ca31 Adding test for model saving with habtm.
Refactoring tests for ajax helper to use assertTags()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7799 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 00:05:59 +00:00
phpnut
add332fb85 Please review the models used in this test case to see why the results are correct.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7797 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 07:44:05 +00:00
gwoo
6624d41ecd updating habtm save handling, fixes #5579
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7795 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 07:19:26 +00:00
mark_story
ee8ff1d5ac Fixing HABTM saving with saveAll(). Tests added. Fixes #4389
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7789 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-29 00:22:52 +00:00
mark_story
5a2db7a5b4 Fixing interaction between Model::_clearCache() and CacheHelper. Cached view files for camelCased controller or underscored URL's were not being cleared. Fixes #5611
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7783 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-26 18:51:38 +00:00
mark_story
b3a6a06f80 Applying patch from 'BrendonCoz'. Model::deconstruct() now allows null for time column types. Closes #5659
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7782 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-26 15:02:01 +00:00
phpnut
d3896854f5 Adding fix for join table using UUID's as the primary key.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7775 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 13:29:32 +00:00
mark_story
c2fee87b63 Added patch from 'shirsch' to fix Model::deleteAll() not returning a boolean value when callbacks = true. Updated test. Closes #5546
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7769 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-22 02:37:05 +00:00
phpnut
f281f8814a Adding changes to tests to correct expected results when using hasAndBelongsToMany associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7752 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-16 00:38:38 +00:00
nate
a239ccc74a Adding correct skip test method for Oracle DB test, cleaning up code formatting, fixes #4671
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7751 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-15 23:07:19 +00:00
renan.saddam
bbd6089aec Added tests to prove non-initializing associated models when useTable is equal to false. Refs #5594.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7741 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-14 23:28:22 +00:00
phpnut
4c2a3ee02f Closes #5591.
Modified models in models.php setting the with key since these models are not used unless the with key is defined in the association.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7740 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-13 01:17:34 +00:00
mark_story
a5feed0284 Updating method names and doc blocks in model.test. Closes #5516
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7704 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-05 22:26:40 +00:00
nate
2bfd5a4b3e Refactoring schema test and fixing formatting, refactoring Model::_findCount() to use DboSource::calculate() in all cases, closes #4501
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7684 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-01 15:27:29 +00:00
nate
8758f36915 Correcting table index formatting for schema generation in DboPostgres, fixes #5471, docblock formatting fixes in ClassRegistry.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7682 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-30 18:59:17 +00:00
renan.saddam
8cc72d853d Added test to disprove ticket #3771. Closes #3771 as invalid.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7660 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 00:58:06 +00:00
DarkAngelBGE
caa4e321f2 Fixing unneeded conditions in child queries when conditions are present in the model declaration; fixes #5323
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7645 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 20:08:31 +00:00
renan.saddam
3e8261b465 Proving error when try to overwrite association name with bindModel. Refs #5438
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7621 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-18 01:54:31 +00:00
mark_story
26a6a0e36f CakeSchema no longer takes tables that are not properly prefixed. Tests added to show prefixed db config and schema read. Closes #5413
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7613 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-17 01:47:19 +00:00
mark_story
616fac0f99 Applied patch from 'grigri' updating Model test to clear possible mis-interpretation of test cases. Closes #5439
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7612 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-16 17:17:24 +00:00
mark_story
2c5819ed67 Removing object from ClassRegistry fixes broken tests in dbo_source.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7598 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 02:08:29 +00:00
phpnut
bfa180e4af Setting missing props on files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7588 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:51:28 +00:00
phpnut
8a30e58504 Fixing class name in doc comment
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7587 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:48:13 +00:00
phpnut
a6f19c8240 Adding fix for Model::afterFind(); not having access to $this->data when using TreeBehavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7586 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-09 18:42:18 +00:00
DarkAngelBGE
19d4f3d596 adding a couple 'return home early' refactorings
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7572 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-08 20:33:48 +00:00
nate
927950e81c Adding TranslateBehavior tests to disprove #3805
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7551 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 02:04:44 +00:00
nate
57c633a64f Adding proper callback disabling for multiple finder types, fixes #5343
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7549 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-04 01:00:08 +00:00
mark_story
a8bb2eb826 Fixing saveAll() using validate => only, applied patch from 'ADmad'. saveAll() now returns value of all validations, not just the last row to be validated. Closes #5376. Tests added.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7547 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-03 16:44:48 +00:00
DarkAngelBGE
0b8006625c fixing missing $group variable in mssql driver renderStatement method, closes #5357, changing indetation in dbo_mssql.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7539 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-01 19:00:00 +00:00
nate
26e2747180 Fixing quoting of numeric literals in DboSource::order(), closes #5360
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7537 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 20:40:15 +00:00
mark_story
38565d7069 Adding test to disprove #5356
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7534 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 14:38:24 +00:00
renan.saddam
f817cb9a07 Added more tests to resetBindings at ContainableBehavior. Closes #4988, #4934.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7532 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-29 02:13:55 +00:00
nate
e64af40530 More fixes for Postgres boolean handling, fixes #5327
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7525 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 12:42:13 +00:00
gwoo
bae3424fb2 fixing questionable test cases
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7522 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 11:17:54 +00:00
DarkAngelBGE
384c5a0624 adding failing test that proves #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7520 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 08:53:44 +00:00
DarkAngelBGE
7863669dab prevent model->save() validating all fields when a fieldList option is supplied, closes #5320
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7519 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 08:01:00 +00:00
nate
1940d8877c Fixing Model/db $cacheSources conflicts, model can now disable only. Fixes #5177
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7518 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 04:55:15 +00:00
nate
57e53775ff Automatically unescaping binary data in DboPostgres, and auto-handling boolean values, fixes #5118
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7517 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-27 04:21:01 +00:00
Jippi
fc012dc32f Adding test for incorrect escapeing of numeric fields with value '' in postgresql dbo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7508 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 16:41:41 +00:00
DarkAngelBGE
285d075475 Fxiing validation error when trying to update records using saveAll for hasMany fixes #4981
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7506 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-26 13:31:07 +00:00
nate
b0b10f16ce Moving operator checking in DboSource::__parseKey(), fixes #5294 (extra = being added to queries with bound parameters)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7489 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-23 14:50:27 +00:00
nate
dbbbccdf18 Refactoring Router, fixed coding standards. Fixed quoting issue in DboSource::name(), affecting quoting of fields starting and ending with ()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7485 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-22 04:06:29 +00:00
mark_story
44d454fe77 Removing getTests() on last commit.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7480 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-20 02:38:08 +00:00