Commit graph

1852 commits

Author SHA1 Message Date
Mark Story
02330b2d9c Making DboSource::fields() accept an expression object. Fixes issues with sql parsing over quoting special SQL syntax.
Tests added
Fixes #66
2009-12-13 15:52:07 -05:00
Mark Story
47a9401d43 Adding test case for cached view files, and fatal errors caused by the view instance not being registered. View instances are now registered when rendering view caches, and unregistered if the cached view fails. This fixes issues rendering flash messages with custom layouts and fixes FormHelper methods inside nocache blocks.
Fixes #60
2009-12-13 12:39:39 -05:00
Mark Story
7c2cdb1fb4 Adding tests to Xml::toString to disprove #395 2009-12-08 22:00:55 -05:00
mark_story
cc750d15f1 Adding test to disprove #385. Proves saveAll with validate => first behaves correctly. 2009-12-04 14:39:12 -05:00
mark_story
cd46f4db2e Fixing function signature of ThemeView constructor. Fixes issues where ThemeView would always be registered causing issues with EmailComponent and themed views. Fixes #370 2009-11-30 09:19:25 -05:00
mark_story
26aa3731e0 Fixing _name_ elements being inserted into serialized xml from Xml lib. Test case added. Fixes #367 2009-11-27 14:27:32 -05:00
dogmatic
51d0805ce0 fixes Text::toList to allow passing array( 1=>"abc", 2=>"abc" ) and the updated test case
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-24 20:23:23 -05:00
mark_story
2e0acbf505 Making habtm join conditions used by __saveMulti when finding link records to remove. It should be noted that having conditions on non-joinTable tables, and not having a model on the joinTable can cause SQL issues. Fixes #304 2009-11-22 17:56:46 -05:00
mark_story
6c3bcdd7e6 Removing commented code. 2009-11-22 17:34:11 -05:00
Juan Basso
c6c7474502 Fix test of the size of lines in MagicDb (included test for it).
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-22 12:27:57 -05:00
Juan Basso
71df8dbbba Replace function sizeof (alias) by count.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:50:57 -05:00
ADmad
862ff82ad4 Updating Configure::store to fix escaping issues
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-14 19:38:53 -05:00
mark_story
06d4e5e553 Reformatting code in memcache.
Adding unset() to test case to remove unnecessary keys that can cause test failure.
2009-11-14 18:50:23 -05:00
mark_story
9376826aa4 Fixing HttpSocket::buildUri when host key is empty.
Tests added
Fixes #271
2009-11-13 14:42:40 -05:00
mark_story
8d407ac915 Adding test to form helper to increase code coverage. 2009-11-13 09:45:25 -05:00
mark_story
d302ed1bfa Fixing comment block formatting. 2009-11-13 09:44:51 -05:00
ceeram
ea482442ff test to prove ticket #291
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-13 09:22:05 -05:00
nate
1c8a2f232b Changes Model::find() to allow modification of DataSource connection during callbacks. 2009-11-12 14:48:03 -05:00
mark_story
a7a6dc8c43 Fixing issue where SecurityComponent::_validatePost could generate notices if elements were removed from _Token array.
Tests Added
Fixed #228
2009-11-08 14:12:18 -05:00
mark_story
6db91b0f49 Fixing issues in ContainableBehavior that could leave models unbound when 'fields' was used as part of containment conditions. Fixes #253 2009-11-07 17:43:18 -05:00
ceeram
dd0c4a64c5 Test to prove ticket #253 2009-11-07 11:02:43 -05:00
mark_story
4bbfcbff7e Fixing limit:0 and controller::paginate. Removes possibilty to generate sql errors by inputting invalid limit options. Tests updated. Refs #264 2009-11-06 00:44:21 -05:00
Ernst Mayerhofer
0327f15395 paginator works with limit 0 now too 2009-11-05 23:44:02 -05:00
mark_story
b4f6dd9c6e Adding tests and support for binary columns in model task. Fixes #241 2009-11-04 22:57:43 -05:00
mark_story
e609875754 Updating Model::invalidFields, so returning false from beforeValidate() will abort both the validation and saving() of the record.
Tests added to check beforeSave, beforeValidate, and beforeDelete return values.
Fixes #257
2009-11-04 12:36:17 -05:00
mark_story
8c46cc49fb Fixing issue in Dispatcher::cached() where plugins ending in asset extensions would be incorrectly handled.
Test added
Fixes #237
2009-11-03 13:14:38 -05:00
mark_story
a87d31cc7f Fixing $cacheAction requiring the inclusion of the controller name for view cache files to be generated. This behavior makes the cache helper behave as documented.
Test cases added.  Fixes #232
2009-11-02 00:07:02 -05:00
mark_story
51244907d1 Updating merge vars test to skip itself if run in a group context.
Updating controller group.
2009-10-31 14:55:04 -04:00
mark_story
6b616b7171 Adding skip for validation test, for DNS servers that reply for non-existant domains. 2009-10-31 14:48:37 -04:00
mark_story
24a75a27bf Updating Javacsript helper to use a real skipIf 2009-10-31 14:25:52 -04:00
mark_story
59566d4587 Updating component test case to no fail in group test.
Updating controller group to only run controller classes.
2009-10-31 14:08:56 -04:00
mark_story
a91970b7b2 Fixing security component test failures when run as part of a group. 2009-10-31 13:41:16 -04:00
mark_story
17edec8460 Changin how HttpSocket parses query string parameters. Makes HttpSocket querystring parameter parsing more congruent with how PHP handles query string parameters in that it doesn't require urlencoded characters.
Tests added.
Fixes #156
2009-10-29 20:14:36 -04:00
mark_story
a31a2d264c Fixing Debugger::log() . The method used protected properties only available in test cases. No stack trace was being logged when called either. Method has been updated to match its doc block better.
Fixes #222
2009-10-29 19:47:29 -04:00
mark_story
23ab84596a Adding discrete tests to Folder::addPathElement 2009-10-27 21:04:14 -04:00
mark_story
5a093e5627 Fixing issues in postgres with time columns and '' values.
Tests added.
Fixes #213
2009-10-27 13:22:34 -04:00
mark_story
79fdd8b341 Adding test to ensure blob integrity. Disproves #199 2009-10-24 12:53:22 -04:00
mark_story
72830cb125 Adding test case for model task
Fixing missing case for float datatypes when generating fixtures.
Fixes #204
2009-10-24 11:26:06 -04:00
mark_story
14bd47842c Removing length() from DboMysqli, fixes incorrect float length parsing.
Test case added.
2009-10-24 11:06:27 -04:00
mark_story
d25497c527 Adding Skip to mb_strrpos test case. Skips the test if mbstring is installed and php version is 5.1.x. mb_strrpos had an incompatible function signature in these versions. 2009-10-22 13:51:55 -04:00
mark_story
61c1c47c93 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-10-22 09:34:45 -04:00
ceeram
3dbae37aad fixing failing i18n testcase, caused by setting $category parameter for __c(), __dc() and __dcn() as LC_MONETARY instead of numeric value 2009-10-22 09:33:48 -04:00
renan.saddam
4e8c268536 Making the test more clear by avoind +-2 days thing. Fixes #186. 2009-10-21 19:19:21 -02:00
mark_story
0e23fdfbb3 Fixing infinitely nesting stack frames when TreeBehavior::reorder() is called and the models $cacheQueries = true and there are a sizable number of records being manipulated.
Test cases added.
Fixes #188
2009-10-21 00:22:36 -04:00
mark_story
c6f783ebfe Fixing issues with CakeTestCase test case and debug = 3. Fixes #189 2009-10-20 22:19:32 -04:00
mark_story
3922f136da Making DboMysqlTest pass when a connection with a prefix is used. Fixes #185 2009-10-19 20:54:02 -04:00
mark_story
52180d50c5 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-10-19 16:40:45 -04:00
mark_story
79e96e5aef Updating localePaths path. Fixes #184 2009-10-19 16:36:44 -04:00
jperras
ae342c6f2c Fixing skip in previous commit: if skip condition evaluates to true, to prevent a fatal error from being produced. 2009-10-19 13:22:14 -04:00
jperras
daafac8a64 Merge branch '1.2' of code.cakephp.org:cakephp into 1.2 2009-10-19 12:51:32 -04:00