Commit graph

124 commits

Author SHA1 Message Date
the_undefined
54715db5dd Made DboSource::length return string for float-like values, added a bunch of tests, fixes #4739
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7027 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-23 07:09:16 +00:00
nate
6c5f98ddec Fixing ACL interface class names
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6999 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 02:00:36 +00:00
mark_story
1523020ea1 Updated tests on DB_ACL coverage up to 88%
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6998 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 00:56:46 +00:00
AD7six
bb9be60c1e updated tree behavior tests to be db independent.
Related primarily to changes to the tree behavior to allow Postgre and sqlite to function correctly.


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6990 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 18:58:43 +00:00
mariano.iglesias
61415e2449 Allowing children when Model(field1, field2, ...) is used as key, fixes #4690
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6989 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-20 15:21:38 +00:00
mark_story
971c35708f Updated CakeSession test, added fixture for session tests.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6973 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-19 21:52:49 +00:00
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
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
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
the_undefined
fa0325b68f Added Node / Dependency Fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6881 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:14:36 +00:00
phpnut
9d9d69d194 Fixing svn props on files.
Renamed sessionHelper.ctp
Fixed test case with proper layout name

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6880 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 05:13:44 +00:00
mark_story
05b3193c54 Added primary keys to Acl fixtures fixes #4634 where tests were failing on InnoDB tables
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6866 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-14 12:18:21 +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
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
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
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
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
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
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
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
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
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
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
nate
ab50975306 Correcting UPDATE query generation to support SQL standards and MySQL-specific features in parallel, fixes #4080
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6491 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-03-01 03:12:12 +00:00
nate
6615daa6b0 Adding test case for saving UUID primary keys, disproves ticket #4123
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6477 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-26 06:20:16 +00:00
nate
3140144a1f Adding behavior test case and fixing validation behavior methods, fixes #4205
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6471 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-24 02:47:10 +00:00
nate
881cf3fc0a Adding foreign key check to Model::updateCounterCache(), fixes #4049
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6425 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-02-02 04:50:44 +00:00
nate
5e4a641003 Updating model test case and adding custom field support to Model::find('list'), closes #3802 (thanks GreyCells)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6360 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-11 03:16:19 +00:00
nate
cbd715618b Removing MySQL-specific schema code from core, improving support for PostgreSQL sequences, most tests passing
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6355 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 08:44:38 +00:00
nate
188ff4737d Removing database-generated primary keys from fixture data, fixed primary key handling in schema generation
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6354 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-10 07:02:33 +00:00
nate
3eb04c36db Fixing database drivers for UPDATE/DELETE changes, updating drivers to comply with model tests, most passing. Fixes #3794.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6350 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-09 13:32:45 +00:00
phpnut
5c1b96330b "Correcting doc tags"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6318 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-03 18:52:53 +00:00
phpnut
6dec91a89f "Fixes #3814, Bug in hasAndBelongsToMany"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6317 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-03 18:50:59 +00:00
nate
695ac50fd7 Adding full join model support, closes #828, closes #1845
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6299 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 23:57:17 +00:00
phpnut
cb53dc61b0 "Closes #2897, Built-in file validation.
Implemented Validation::extension(); and Vaidation::range();
Updated copyright notices in all files"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6296 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 22:18:17 +00:00
nate
5abe66289d Implemented 'counterCache' and 'counterScope' for belongsTo associations
Exempted 'created', 'updated' and 'modified' fields from whitelist when saving, closes #3720
Updated Model::bind(), closes #2355
Adding Model::saveAll() to save multiple records and associated records, closes #3615
Replacing Model::generateList() with Model::find('list'), deprecates Model::generateList()



git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6295 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-01-01 19:34:40 +00:00
nate
4d68d6c6dd Adding fixtures for 'with' association tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6245 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-25 05:35:37 +00:00
nate
0d469ac4ba Fixing ability to specify select fields for join models, and adding tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6230 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 17:03:19 +00:00
phpnut
27721cb730 "Fixes #3726, Saving date, datetime, and time into database (form->input)"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6210 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-23 05:40:25 +00:00
phpnut
608f32172e "Adding missing fixture"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6167 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-17 18:07:36 +00:00
gwoo
cf4aabd315 adding cache test model fixture
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5995 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-15 09:52:29 +00:00
nate
8f12e402df Fixing ACL test, misc ACL lookup optimizations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5916 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-29 00:17:37 +00:00
phpnut
7b914bab9f Correcting tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5893 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 17:04:14 +00:00
mariano.iglesias
6591c8f79b Adding test for #3455 replicating issue, Secondary model array in model data causes corruption
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5892 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-24 16:29:50 +00:00
mariano.iglesias
aaca183da1 Adding test case for #3430, where different belongsTo bindings that use same class but different alias name in various models would break under certain circumstances
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5865 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 20:20:48 +00:00
phpnut
7ebb27fccc Fixes #2982, TreeBehavior::verify, non-portable SQL, badly quoted conditions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5806 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-19 21:43:48 +00:00
phpnut
603ed0e39c Initial start of Unicode support, I may move this handling of this to a unicode class.
Implemented multi-byte methods for:
String::strpos();
String::stripos();
String::strtoupper();
Added test cases for String::utf8() String::ascii() String::strpos() String::stripos() and String::strtoupper()
Corrected file encodings.
Added loading of configurations from cake/config
Added specifc case folding files to cake/config/unicode/casefolding


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5691 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-24 23:49:54 +00:00
phpnut
bd3e702d77 changed i18n schema to use only one db table for translations
changed fieldname 'row_id' to 'foreign_key'
now allows fallbacks for not-existing translations by setting model's locale to array of locales
model used for hasMany associations and for saving/deleting of translation records is configurable by Model::$translateModel property, db field 'i18n.field' is  configurable by property $displayField of this custom model, instance of this model is obtainable by $this->ModelName->translateModel()
Added tests for translate behavior.
Added i18n shell script
Correcting translation function calls in various files

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5669 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-18 04:16:04 +00:00
mariano.iglesias
d05a5d4804 Adding new failing test case to showcase problem with HABTM and belongsTo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5630 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-11 21:00:58 +00:00
nate
3723885be3 Adding ACL node locator fix for AclNode::node() (Ticket #2976)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5588 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-27 03:16:49 +00:00
gwoo
0533bbd92c updating schema reading
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5579 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-25 03:59:21 +00:00
gwoo
3a5f89f3e2 updating fixtures
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5573 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-23 22:38:04 +00:00
gwoo
8bb67d9f6a Adding Schema support, updated fixtures, deprecated loadInfo, changed Dbo::describe in all dbos, fixed tests,
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5563 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-21 21:46:59 +00:00
AD7six
59f3dfc427 Minor cleanup to tree test and fixture. No functional changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5558 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 17:46:44 +00:00
mariano.iglesias
f2d4894f73 Adding new test case to show failing inner associations
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5542 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-17 19:03:49 +00:00
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
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
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
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
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
nate
57891baadf Adding fixtures for afterFind() test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5234 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-03 21:58:14 +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
phpnut
97aa991f2d Correcting svn properties on files
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-15 07:19:31 +00:00
mariano.iglesias
003e30673e Added test for combination of self joins and belongsTo
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4773 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 04:04:55 +00:00
mariano.iglesias
f4df563a84 Removing unnecessary requirements
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4751 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:16:37 +00:00
mariano.iglesias
f12d025a23 Implementing AclNodeTest through fixtures
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4749 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:13:33 +00:00
mariano.iglesias
2f5fa26e29 Simplified failing test in model.test.php
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4736 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 16:03:42 +00:00
mariano.iglesias
024fc47407 Added test that replicates issue in bakery with nested models after doing some bindModel() and unbindModel()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4723 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-01 04:40:18 +00:00
phpnut
3a62793d0e Adding fix for Ticket #2232.
Added tests for ticket

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4714 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-30 00:08:10 +00:00
nate
381ec92b4c Adding tests and fixtures for self-join associations, and fixing JS syntax for 'indicator' (Ticket #2302)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4705 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-29 02:16:00 +00:00
phpnut
44f4d8d6f8 Adding headers to files.
Formating doc comments

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4668 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 22:11:06 +00:00
phpnut
3a4a49ef03 Adding changes to test suite submitted by Mariano
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4667 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-23 21:59:08 +00:00