Commit graph

2875 commits

Author SHA1 Message Date
mark_story
70820e2e96 Renaming unconfig to drop. 2009-11-14 20:18:58 -05:00
mark_story
caedbdf98a Adding Cache::configured() and Cache::unconfig(). configured() allows introspection on the currently configured settings. unconfig() allows for the removal of cache configs.
Tests added.
2009-11-14 20:10:40 -05:00
mark_story
040f94cb81 Adding test case files used for previous commit. 2009-11-14 20:10:40 -05:00
mark_story
b6978ab25f Adding the ability to load cache engine classes from plugins and app libs.
Also enabled the ability for App cache classes to override core ones.
Test cases added.
Removed unnecessary subclassing of Object.
2009-11-14 20:10:40 -05:00
mark_story
2740fd6714 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-14 19:42:24 -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
predominant
ac86ad05ac Moving access modifier doc tag. 2009-11-14 23:38:52 +11:00
predominant
0977b3fe15 Standardising docblock endings throughout. 2009-11-14 23:19:25 +11:00
predominant
5092262d4d Reformatting and adding missing documentation blocks. 2009-11-14 23:18:31 +11: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
360ea2a46a Adding extract task to Console Group test. 2009-11-13 10:24:36 -05:00
mark_story
d93c94f702 Fixing failing test, picked in from 1.2. 2009-11-13 09:53:31 -05:00
mark_story
bfde6b81fe Adding test to form helper to increase code coverage. 2009-11-13 09:48:31 -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
mark_story
2c5fa171e0 Updating CakeSchema to pass a Model object into DboSource::fullTableName(); Fixes schema's not correctly reading tablePrefixes.
Fixes #290
2009-11-13 00:43:40 -05:00
nate
1c8a2f232b Changes Model::find() to allow modification of DataSource connection during callbacks. 2009-11-12 14:48:03 -05:00
renan.saddam
8cab87fd8e Fixing fixtures path when using a fixture inside a plugin. 2009-11-11 20:14:24 -02:00
mark_story
63ee8f0fcd Starting pass through validation handling.
Implemented phone, and postal pass throughs.
Adding tests.
2009-11-10 21:20:39 -05:00
mark_story
b39b38aac9 Adding missing variable.
Adding Test case for previous commit.
2009-11-10 09:17:54 -05:00
mark_story
f0628d100b Fixing issues with getting values from habtm data after form posting and validation has failed.
Tests added.
Refs #279
2009-11-09 21:00:19 -05:00
mark_story
adaa2b689c Adding test case for previous commit.
Fixing function for non-windows paths.
2009-11-09 20:10:24 -05:00
mark_story
c4b493c934 Manually merging changes from ModelTask in 1.2 to FixtureTask
Adding test cases for FixtureTask.
2009-11-08 22:22:08 -05:00
mark_story
6b5c247162 Merge commit 'origin/1.2' into mergers
Conflicts:
	cake/bootstrap.php
	cake/console/cake.php
	cake/console/libs/tasks/model.php
	cake/libs/configure.php
	cake/libs/view/helpers/cache.php
	cake/libs/view/helpers/paginator.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/view/helpers/cache.test.php
2009-11-08 22:21:21 -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
4a08bd120d Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-07 10:41:12 -05:00
ADmad
002a01a9d8 passedArgs from current request are auto merged with url options of paginator helper
Signed-off-by: Florian Krmer <florian.kraemer@cakedc.com>
2009-11-06 18:31:42 +01:00
mark_story
ab76cb1217 Merge branch '1.3' into 1.3-misc 2009-11-06 09:25:11 -05:00
predominant
884490f1a1 Removing leftover SVN tags. 2009-11-06 18:35:14 +11:00
predominant
62810fb4f4 Updating more Copyright dates. 2009-11-06 18:04:38 +11:00
predominant
1185681549 Removing newline caused by Subversion line removal. 2009-11-06 18:01:22 +11:00
predominant
384bb7a0e0 Update license lines throughout. 2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed Fixing links throughout 2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8 Removing excess whitespace 2009-11-06 17:08:23 +11:00
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
5dfe1777af Removing Subversion file headers. 2009-11-06 16:51:09 +11: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
predominant
ceee56013c Remove Subversion $Date$ lines. 2009-11-06 16:17:01 +11:00
predominant
04f1b6cdfe Remove Subversion $LastChangedBy$ lines. 2009-11-06 16:11:16 +11:00
predominant
42f3f16d60 Remove subversion $Revision$ lines. 2009-11-06 16:08:02 +11:00
predominant
531eaaad4e Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-11-06 15:54:01 +11:00
Ernst Mayerhofer
0327f15395 paginator works with limit 0 now too 2009-11-05 23:44:02 -05:00
predominant
1b9b0aae5e Updating Copyright date to include 2009. 2009-11-06 15:34:28 +11:00
mark_story
e776cf1ad2 Adding tests and fixing inline parameter being converted to an attribute.
Fixes #265
2009-11-05 23:32:39 -05:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
c238d4d11b Adding return and test case for CakeLog::write() 2009-11-05 23:20:40 -05:00
mark_story
781d184dbd Merge branch '1.3-logging' into 1.3-misc 2009-11-05 22:03:18 -05:00
mark_story
84c8cc3f36 Adding tests for importing loggers from app/libs and plugin/libs.
Adding tests for failed configs.
2009-11-05 20:13:15 -05:00
mark_story
54c772c5d5 Updating fileheader. 2009-11-05 19:49:12 -05:00
mark_story
6c9f215306 Adding tests for file log path settings. 2009-11-05 19:44:50 -05:00
mark_story
01bb9e5957 Refactoring FileLog
Adding test case for FileLog
2009-11-05 19:41:43 -05:00
mark_story
1e70119232 Adding basics to lib group, it wasn't part of any group before. 2009-11-05 19:20:35 -05:00
mark_story
afdcd36687 Fixing test broken by merge. 2009-11-05 19:18:38 -05:00
mark_story
d23f2f4604 Implementing CakeLog::config() adding simple tests for config(). 2009-11-05 19:16:46 -05:00
mark_story
98f0e370a1 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-logging 2009-11-05 18:40:01 -05:00
mark_story
88ef00d2d0 Removing trailing whitespace. 2009-11-04 23:05:25 -05:00
mark_story
f61291c1c3 Renaming setup() to startTest. 2009-11-04 23:03:09 -05:00
mark_story
4cb88ab1bb Expanding tests for RouterRoute route compilation. 2009-11-04 23:03:08 -05:00
mark_story
4a81017f9d Splitting very large test method into smaller pieces. 2009-11-04 23:03:08 -05:00
mark_story
aeb61f3750 Continuing to refactor Router methods into RouterRoute.
Fixed issues with some routes having trailing / and others not.
All existing router tests are passing.
2009-11-04 23:03:08 -05:00
mark_story
cc5c5a5ac9 RouterRoute now being used instead or route arrays.
Still some failing tests, mostly due to trailing /
2009-11-04 23:03:08 -05:00
mark_story
6da1ab9c30 Moving matching and parsing methods into RouterRoute. 2009-11-04 23:03:08 -05:00
mark_story
fec83abd90 Starting refactoring of Route methods into a separate class. Tests added. 2009-11-04 23:03:08 -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
ceb7826db0 Adding test case for CakeLog stream autoconfiguration. 2009-11-04 18:07:39 -05:00
mark_story
380b49a446 Fixing Helper::value() and extraction of habtm data. Refs #256 2009-11-04 14:05:12 -05:00
mark_story
b974127562 Adding tests for habtm data selection. Refs #256 2009-11-04 13:56:44 -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
dc07a05fca Merge branch '1.3' into 1.3-misc 2009-11-04 09:20:21 -05:00
tPl0ch
f5ca3ace1f Modified Model::find() to make Model::findQueryType available in Model callbacks. Fixes https://trac.cakephp.org/ticket/5847. Tests added
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-04 09:16:04 -05:00
mark_story
1d22adbc1a Merge branch '1.3-misc' into 1.3 2009-11-03 22:50:11 -05:00
mark_story
d17c526dc3 Fixing String::insert() when $data is an empty array. Which was happening in the dbo source tests. 2009-11-03 18:21:01 -05:00
mark_story
4632402a25 Fixing controller test to run when app/views/posts/index.ctp is present. 2009-11-03 17:42:42 -05:00
mark_story
3b3ceddfdb Fixing Email test to account for whitespace changes done on view files. 2009-11-03 17:39:59 -05:00
mark_story
df4cd12d0f Fixing RequestHandler test case when app/views/posts/index.ctp is available. 2009-11-03 17:19:02 -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
055b5c66aa Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-02 23:59:25 -05:00
mark_story
fc9cecc24e Converting spaces to tabs. 2009-11-02 13:51:46 -05:00
renan.saddam
034b5c435c Allowing FormHelper::month() to use a $monthNames array as values. 2009-11-02 13:51:16 -02:00
ceeram
a3775937a4 Tests updated for new output of FormHelper::input
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-02 00:19:01 -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
b39df8ce2b Removing reference to deprecated method. 2009-11-01 12:58:09 -05:00
mark_story
f033516fcc Moving inflector test around, fixes group test fails. 2009-11-01 12:53:47 -05:00
mark_story
d77761e03b Fixing merged test from 1.2 2009-11-01 12:31:57 -05:00
mark_story
d956378d48 Improving console group test suite.
Still getting intermittant fails from controller task.
2009-11-01 12:31:41 -05:00
mark_story
ac97dfd70d Fixing api shell test case. 2009-11-01 12:25:40 -05:00
mark_story
35fa099f6a Updating ajax helper test to reflect changes in FormHelper parameter usage. 2009-11-01 12:20:37 -05:00
mark_story
a3bb77c4f3 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/acl.php
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/db_config.php
	cake/console/libs/tasks/model.php
	cake/console/libs/templates/skel/views/layouts/xml/default.ctp
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/validation.php
	cake/libs/view/helpers/form.php
	cake/tests/cases/basics.test.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/cake_test_case.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php
	cake/tests/cases/libs/view/helpers/javascript.test.php
	cake/tests/cases/libs/view/helpers/session.test.php
	cake/tests/groups/controller.group.php
	cake/tests/groups/lib.group.php
	cake/tests/groups/no_database.group.php
2009-11-01 12:11:49 -05:00
mark_story
44d7742b85 Minor refactoring and removal of duplicate test. 2009-10-31 16:28:43 -04:00
tPl0ch
2331cfde60 Added 'before' and 'after' options to FormHelper::submit(). Test cases updated.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-31 16:21:53 -04:00
mark_story
3a59bf5ed6 Updating Scaffold to work with any single prefix. You can set $scaffold = to any prefix defined in Routing.prefixes.
Tests added.
2009-10-31 16:06:20 -04: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
76019513e1 Updating lib group to run non-mvc libs.
Removing no_database group.  It was redundant.
2009-10-31 14:33:53 -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
predominant
4f4274ad24 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-10-31 18:32:26 +11:00
predominant
bed9b6e58d Extending TextReporter from SimpleTest to provide memory usage and execution time information for text output test results. 2009-10-31 18:30:59 +11:00
mark_story
6726b76077 Refactoring input() to reduce number of method calls.
Applying patch from 'j3ffy' to allow user defined types to override magic select type.
Test case added.
Fixes #5109
2009-10-31 01:45:17 -04:00
mark_story
9ed7a5cd55 Adding new options into doc blocks.
Removing todo as its implemented already.
2009-10-31 00:58:21 -04:00
mark_story
ac302bb6c2 Minor refactoring.
Adding tests for form->create() with file type forms.
2009-10-31 00:08:49 -04:00
mark_story
15da4a7007 Moving tests around to be closer in the file to similar tests.
Reformatting tests.
Adding/updating doc blocks for test methods.
2009-10-30 23:23:33 -04:00
José Lorenzo Rodríguez
adea104edb Allowing output disabling of hidden fields in checkbox and radio input types. closes #6185
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 22:47:31 -04:00
José Lorenzo Rodríguez
1c47b2182e Adding form encoding default in form create options. Default is always taken from Configure::read('App.encoding'). closes #6042 2009-10-30 22:35:21 -04:00
José Lorenzo Rodríguez
dfc1014fba Making current action be the default for new forms. Updating test accordingly. closes #5353
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 22:29:49 -04:00
mark_story
55fc72c533 Moving test method and adding doc block. 2009-10-30 22:25:49 -04:00
José Lorenzo Rodríguez
4752fc04da Adding test case to prove it is possible to escape error messages using form::input options parameter, closes #2920 as invalid
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-30 22:24:18 -04:00
mark_story
ad8cba41e6 Merge branch '1.3' into 1.3-misc 2009-10-30 22:04:20 -04:00
phpnut
7bead5df30 Fixing catalog() to return 3 char matches 2009-10-30 14:43:52 -05:00
mark_story
5f1e6ba6a0 Making DboSource::fetchAll return $this->_result if it is a boolean and $out is empty. Allows for Model::query() to return boolean values for operations that do not return recordsets. Fixes #6404 2009-10-29 20:31:29 -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
84ec53a039 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-10-29 09:51:06 -04:00
mark_story
aa03756238 Updating tests to expand coverage of buildcolumn. 2009-10-29 09:26:23 -04:00
mark_story
23831546b5 Adding valid options for sqlite collation. Tests added. 2009-10-29 02:03:50 -04:00
mark_story
a33457155f Adding valid option checking to fieldParameters.
Test case added.
2009-10-29 02:03:21 -04:00
mark_story
2a8858e928 Adding tests to DboSqlite::buildColumn
Adding collate field parameter to DboSqlite.
Removing duplicated code from DboSource, adding parent call instead.
2009-10-29 01:36:15 -04:00
renan.saddam
e7074c1e5c Moving parameters to $options on Text::truncate() and Text::highlight(). 2009-10-29 01:23:44 -02:00
mark_story
1e7c2bbfde Adding libs dir generation to PluginTask. Baked plugins now come with a libs dir. 2009-10-28 09:21:42 -04:00
SkieDr
35d5ffca71 add library fixture for app::import tests 2009-10-28 16:09:17 +03: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
102f10365f Implementing -records flag to enable quick access to building fixtures off of live data. Refs #196 2009-10-24 14:32:56 -04:00
mark_story
857b7c2399 Merge branch '1.3' into fixture-task 2009-10-24 14:08:16 -04:00
mark_story
f0fdd257cf Adding tests for -count and -records params 2009-10-24 14:08:08 -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
6847d34d80 Updating fixture test to fix issues caused by refactoring in CakeSchema. 2009-10-22 13:11:30 -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
mark_story
0b232742d9 Adding skip() for CacheHelper test to check if app/tmp/cache/views is writable. 2009-10-22 00:38:37 -04:00
mark_story
dac26d92bc Reformatting tests, and fixing trailing whitespace.
Adding doc comments for new form helper tests.
2009-10-22 00:24:54 -04:00
mark_story
6123ed47c4 Removing empty strings that caused undefined string offset errors.
Trimming trailing spaces.
2009-10-22 00:17:48 -04:00
José Lorenzo Rodríguez
597643cd0c Fixing small error in last commit 2009-10-22 00:17:31 -04:00
José Lorenzo Rodríguez
ce743c00e8 Expanding Helper an View functionaility to accept deep nested entitities.
This allows the form helper to render inputs with arbitrary number of dot separated parts
2009-10-22 00:17:23 -04:00
José Lorenzo Rodríguez
50ec80ff50 Continuing work on Helper::setEntity and associated methods 2009-10-22 00:17:14 -04:00
José Lorenzo Rodríguez
2941e89da3 Making Helper::viewEntity accept any number of levels 2009-10-22 00:16:37 -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
0cc1d84737 Removing use of e() from core and test suite. 2009-10-21 12:57:03 -04:00
SkieDr
1454ea54a2 add test for app folder for libraries support 2009-10-21 18:13:14 +04:00
SkieDr
6d4fe6b764 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-10-21 15:42:00 +04:00
burzum
78e7421834 Changing two deprecated Session::del() calls to Session::delete() in the tests. 2009-10-21 13:00:51 +02:00
SkieDr
fb64d14442 Add support libs folder into app and plugins that will allow to split users and vendors code. Libs files should follow cake naming conventions for files names and classes. 2009-10-21 14:59:12 +04: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
fa6b1b1a20 Changing FormHelper::button() to actually create <button> elements instead of input elements. Test cases added. 2009-10-19 23:57:23 -04:00
mark_story
08f07a9aa4 Changing FormHelper::submit() to be able to create all types of submit buttons. Use 'type' option to create reset or button type inputs.
Test cases added.
2009-10-19 23:44:50 -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
jperras
7ff3fcc4c4 Adding skip for non-existence of DateTimeZone class in time helper tests. 2009-10-19 12:51:06 -04:00
mark_story
2675bbcd53 Fixing FormHelper::__selectOptions incorrectly selecting options due to type juggling. Fixes #167 2009-10-18 22:05:17 -04:00
mark_story
057e3ff0aa Removing $showEmpty parameter from all select based widgets.
Use attributes[empty] instead.  This change unifies the api between form->input() and other widget methods.
Tests and docblocks updated.
2009-10-17 01:29:16 -04:00
mark_story
0dee625215 Removing escape parameter from para()
Renaming parameters.
2009-10-16 23:14:42 -04:00
mark_story
3c1d134685 Updating doc blocks.
Renaming inline param for style() to oneline.
Removing escape parameters from div() and tag()
2009-10-16 23:11:13 -04:00
mark_story
8e2f58d086 Removing HtmlHelper::css() inline parameter. Use $options[inline] instead.
Adding tests for inline = false script and css generation.
2009-10-16 23:00:31 -04:00
mark_story
6bb53a5c9d Removing HtmlHelper::link()'s escapeTitle parameter. $options[escape] now controls escaping of attributes and title text. 2009-10-16 22:49:44 -04:00
mark_story
7344c0ce7d Removing $inline parameter from HtmlHelper::meta() inline is now an option. 2009-10-16 22:31:56 -04:00
mark_story
aa0c7cbd7f Merge branch '1.3-formhelper' into 1.3-misc 2009-10-16 22:03:07 -04:00
mark_story
f9f2986f48 Implementing Form helper default options. Allows the creation of persistent form options when opening a form.
Adding patch from 'Ceeram' / 'bankai'
Refs #56.
2009-10-16 22:02:07 -04:00
mark_story
6dcc819121 Updating fileheaders. 2009-10-16 22:02:07 -04:00
mark_story
f07df02087 Making JsHelper::set() work well with setting the variables to an object property. 2009-10-16 22:02:06 -04:00
mark_story
4be98b6ed9 Adding JsHelper::set() + test cases. 2009-10-16 22:02:06 -04:00
mark_story
7b1d21692f Updating $pluginPath loops to use App::pluginPath(). 2009-10-16 22:02:06 -04:00
mark_story
ecc7d9b303 Replacing $pluginPath loops with App::pluginPath(). Minor optimization for App::pluginPath(). 2009-10-16 22:02:06 -04:00
mark_story
a36c2ec5bb Removing self inclusions for test cases. Refs #174 2009-10-16 09:21:33 -04:00
mark_story
3a85197f25 Removing self inclusions for test cases. Refs #174 2009-10-16 09:19:23 -04:00
renan.saddam
43dbf71624 Doing a little optimization for php 5.1 <, also fixing tests on Windows. Fixes #155. 2009-10-15 18:09:58 -03:00
mark_story
906eb82e9b Fixing typo in prototype engine helper. Fixes #172 2009-10-15 11:09:13 -04:00
mark_story
078b84500b Adding test from 'Phally' to expand coverage of allow() 2009-10-15 09:23:24 -04:00
mark_story
6c956c27ee Making JsHelper::set() work well with setting the variables to an object property. 2009-10-14 21:43:50 -04:00
mark_story
4a330c0920 Adding JsHelper::set() + test cases. 2009-10-14 21:26:43 -04:00
mark_story
082156f9a1 Fixing FormHelper::input() label's for attribute when a datetime type is created and dateFormat or timeFormat is set to NONE. Fixes #168 2009-10-14 21:17:00 -04:00
mark_story
604b7e0a10 Splitting a long test for FormHelper up into smaller test cases. 2009-10-14 20:10:32 -04:00
mark_story
2f81c29def Updating $pluginPath loops to use App::pluginPath(). 2009-10-14 09:47:07 -04:00
mark_story
de8f251758 Replacing $pluginPath loops with App::pluginPath(). Minor optimization for App::pluginPath(). 2009-10-14 09:28:06 -04:00
mark_story
38f65bdc24 Merge branch '1.2-merge-in' into 1.3 2009-10-14 00:55:42 -04:00
mark_story
d1f5acd0e0 Merge commit 'origin/1.2' into 1.2-merge-in
Conflicts:
	cake/console/libs/shell.php
	cake/libs/model/connection_manager.php
	cake/libs/view/helpers/html.php
	cake/libs/view/helpers/javascript.php
	cake/tests/cases/libs/i18n.test.php
	cake/tests/cases/libs/model/connection_manager.test.php
	cake/tests/cases/libs/model/model_read.test.php
	cake/tests/cases/libs/view/helpers/html.test.php
	cake/tests/groups/database.group.php
2009-10-14 00:51:55 -04:00
José Lorenzo Rodríguez
6dbb8690ad Fixing error in String::insert where string that contained a question mark were not propperly replaced 2009-10-13 12:07:22 -04:00
José Lorenzo Rodríguez
24c82e73c1 Fixing broken test after removing the var pageTitle from controller 2009-10-13 11:44:00 -04:00
mark_story
f2cba2f066 Updating model_write.test to not use removed validation constants. 2009-10-13 00:44:28 -04:00
mark_story
0602293d3e Updating file headers for group tests. 2009-10-13 00:33:14 -04:00
mark_story
529f8483c4 Adding Behaviors test group. 2009-10-13 00:32:52 -04:00
mark_story
96247e827b Adding group test for i18n, l10n and multibyte test cases. 2009-10-13 00:21:19 -04:00
mark_story
82f2291bd4 Updating Lib Group test to include files manually and run. 2009-10-13 00:19:15 -04:00
mark_story
496bfaf32e Fixing test that relied on Late Static binding to pass. 2009-10-13 00:18:09 -04:00
mark_story
a4d09a806c Adding tests for previous commit, showing alteration of \ into DS. 2009-10-13 00:01:09 -04:00
mark_story
e5a99b2685 Updating RequestHandler::renderAs() to respect DS constant, fixing issues on PHP4 + Windows. Fixes #97 2009-10-12 23:55:40 -04:00
mark_story
a3f38c77dd Merge branch '1.3-console' into 1.3 2009-10-11 21:51:02 -04:00
mark_story
71f9ab1717 Merge branch '1.3-misc' into 1.3 2009-10-11 21:44:42 -04:00
mark_story
e77ff5ae50 Fixing CacheHelper tests when app/views/posts/index.ctp exists. 2009-10-11 21:42:15 -04:00
mark_story
382488a9a7 Updating tests to reflect changes in default bake templates. 2009-10-11 21:39:41 -04:00
mark_story
d59a2c8de1 Making subclassing of ErrorHandler much easier.
Test cases added.
2009-10-09 00:13:08 -04:00
mark_story
f59d95e348 Updating file headers. 2009-10-08 23:46:05 -04:00
mark_story
8d40532931 Applying patch from 'Ceeram'. Adds File::copy() and test case. Refs #150 2009-10-08 23:27:31 -04:00
mark_story
c5ec87e577 Adding tests for SchemaShell::generate() with plugins, testing that plugin schema files do not include non plugin models. 2009-10-08 22:40:17 -04:00
mark_story
ee7015c9bd Adding tests for utf8 chars to TextHelper::truncate() 2009-10-07 23:56:38 -04:00
mark_story
55ef5cedfb Updating fileheaders. 2009-10-07 23:43:02 -04:00
mark_story
fc0e50f64a Adding tests for multibyte validation. 2009-10-07 23:43:02 -04:00
mark_story
0d3ef03b9f Updating file headers. 2009-10-07 23:43:01 -04:00
mark_story
06162d5022 Deprecating TextHelper::trim() as it is an alias for truncate().
Expanding use of mb_ methods.
Tests updated.
2009-10-07 23:43:01 -04:00
mark_story
190a8b8307 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-10-07 01:35:42 -04:00
mark_story
4b862de085 Fixing interactions with Routing.prefixes in Controller and View task. 2009-10-07 01:35:29 -04:00
jperras
c95221919a Removing validation tests that relied on removed define()'ed constants. 2009-10-07 01:10:51 -04:00
mark_story
651a3f16b2 Updating ProjectTask::getAdmin(). Renamed to ProjectTask::getPrefix(). Now returns the user selected prefix to use for baking.
Test cases updated.  Use of method updated.
2009-10-07 00:46:13 -04:00
mark_story
9a023136e3 Merge branch '1.3-misc' into 1.3 2009-10-06 17:23:35 -04:00
mark_story
8acf1eeba0 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-10-06 09:09:18 -04:00
mark_story
3bf94e6a28 Updating documentation for Model methods to improve api parsing.
Removing redundant include.
2009-10-05 20:42:37 -04:00
mark_story
ace784aab5 Adding conditional check for errors only generated in PHP5.3 2009-10-04 22:22:39 -04:00
mark_story
0ba93bd579 Updating file headers, reformatting comments. 2009-10-04 22:12:13 -04:00
mark_story
d2bf31f69f Fixing broken tests in dbo_mysql caused by changes in CakeSchema.
Adding tableParameter altering to DboMysql.
Tests added.
2009-10-04 21:48:20 -04:00
mark_story
778755c2b0 Implementing CakeSchema:;_compareTableParameters. Adding tests for tableParameter comparison. 2009-10-04 20:53:49 -04:00
mark_story
2dc0fbf3b3 Making schema dump work with plugins.
Adding tests.
Making output of dump file more flexible.
2009-10-04 14:47:35 -04:00
mark_story
75f2106420 Made SchemaShell::view() work better with plugins. Tests added. 2009-10-04 14:06:07 -04:00
mark_story
aae120a81a Updating file headers. 2009-10-04 13:35:11 -04:00
mark_story
05f6099def Enabling plugin.name schema file creation and addition.
Making CakeSchema::load() use plugin parameter, tests added.
Plugin schema file added to test_app.
2009-10-04 13:32:33 -04:00
mark_story
c2a53d3c69 Removing cake schema run. Replacing it with cake schema create and cake schema update. Removes extra typing and simplifies schema shell commands.
Updating test cases.
2009-10-04 11:16:23 -04:00
mark_story
76a88fc477 Updating help() for Schema shell. 2009-10-04 10:04:48 -04:00
mark_story
2fe877e527 Adding method to compare tableParameters in the Schema, so they no longer fall through as fields. 2009-10-03 16:48:10 -04:00
mark_story
236a679b17 Updating tests for schema. Making tests more reliable for schema read. 2009-10-03 16:08:54 -04:00
mark_story
e733c569be Fixing broken tests. 2009-10-03 12:44:49 -04:00
mark_story
0029a275bd Refactoring code into a separate method. Will allow code reuse in fixture generation. Tests added. 2009-10-03 12:41:14 -04:00
mark_story
b75aa10da3 Merge branch '1.3-misc' into 1.3-schema 2009-10-03 11:55:27 -04:00
mark_story
71aa460a48 Continuing work on getting plugin support for CakeSchema and SchemaShell. Applied patch from 'SkieDr', test cases added. 2009-10-03 11:48:02 -04:00
mark_story
07002c8b09 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-10-03 11:44:26 -04:00
mark_story
ed2e20ed23 Merge branch '1.3-misc' into 1.3 2009-10-02 13:18:12 -04:00
mark_story
4794680444 Deprecating CakeSession::del(), use delete() instead.
Updating file headers.
Updating test cases.
2009-10-02 13:11:43 -04:00
mark_story
c47e899ba1 Fixing HtmlHelper::css, and JavascriptHelper::link so that files containing the asset extension always get the extension added. Test cases added. Refs #139 2009-10-02 12:53:20 -04:00
mark_story
f12cbdba38 Fixing CacheHelper and multiple cake:nocache tags in a view file, breaking cake:nocache following $content_for_layout. Fixes #136 2009-10-01 01:03:47 -04:00
mark_story
32d5b40cd0 Adding error triggering while in debug mode for unhandled validation methods. 2009-09-30 22:34:29 -04:00
mark_story
7d4510b959 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-09-30 14:26:38 -04:00
mark_story
5f49a0f25c Updating path handling inside i18n. Removes the extra DS that was appended to some paths. Fixes #126 2009-09-30 14:25:56 -04:00
mark_story
cba8871f16 Adding tests so that adding one prefix removes other prefixes. Making it so you can only have one prefix at a time in a route. Also simplifies prefix switching. 2009-09-30 10:19:43 -04:00
mark_story
58ec259714 Merge branch '1.3-router' into 1.3-misc 2009-09-30 00:51:20 -04:00
mark_story
893e177909 Fixing isset() checks in Router to test for empty values instead.
Updating prefix use in paginator helper test.
2009-09-30 00:50:15 -04:00
mark_story
4094f0a696 Moving DboMysql::listDetailedSources() and DboMysql::getCharsetName() into DboMysqlBase so it works with mysqli as well. Tests added for MySqli. 2009-09-30 00:39:32 -04:00
mark_story
6dbba17d1b Fixing issues with DboSource::execute() where queries would not be run if stats = false in the options. Tests added. 2009-09-30 00:37:06 -04:00
mark_story
17782f71b3 Removing internal magic 'id' param. It behaved inconsistently in that it defaulted into the passed parameters, even though it was input as a named/routed parameter. This change makes 'id' a regular routed/named parameter. 2009-09-29 22:53:17 -04:00
SkieDr
627eff5f24 Implementation of table level and field level parameters support 2009-09-29 22:54:48 +04:00
SkieDr
a445a12020 Implement tests for new dbo source methods for additional table and field parameters support 2009-09-29 22:54:36 +04:00
mark_story
070bbb5d0e Removing magic 'title' key in Controller::set() and View::set()
Removing Controller::$pageTitle and View::$pageTitle.
Instead you should set('title_for_layout', $val) from your view or controller.
Test cases updated.
2009-09-28 21:23:40 -04:00
mark_story
bcb5e42aab Adding test for previous commit. 2009-09-28 18:11:04 -04:00
mark_story
bc90f0aa01 Merge branch '1.3-console' into 1.3
Conflicts:
	cake/console/libs/tasks/fixture.php
2009-09-27 16:26:45 -04:00
davidpersson
3de2f6b671 Fixing test for Shell::err(). 2009-09-27 16:25:18 +02:00
mark_story
dfae21be8b Expanding test coverage of newly added Routing.prefixes.
Flagging legacy support test cases.
2009-09-27 01:22:46 -04:00
mark_story
76c1c1cb8e Implementing Routing.prefixes.
Replaces Routing.admin and streamlines the use of Routing prefixes so they behave more consistently with admin routing.
2009-09-27 00:12:03 -04:00
mark_story
3e394f1fa8 Adding test cases for Routing.prefixes. 2009-09-26 22:48:57 -04:00
mark_story
3904c6f7b5 Adding constructor to Router.
Adding __setPrefixes to initialize prefixes and merge Routing.admin with new Routing.prefixes.
2009-09-26 22:37:19 -04:00
mark_story
cf849e3cf8 Removing svn tags. 2009-09-26 22:22:43 -04:00
davidpersson
0f6bca7496 Making first parameter of Shell::out() and err() optional. 2009-09-26 23:02:54 +02:00
mark_story
508d737b6a Updating HtmlHelper::css, JavascriptHelper::link to not replace multiple occurences of CSS_URL or JS_URL when using Asset.filter settings.
Test cases added.
Thanks to 'robustsolution' for the patch.
Fixes #105
2009-09-26 14:22:12 -04:00
jperras
03b1089f1d Updating docs for Set library. Deprecating Set::isEqual(). 2009-09-25 15:05:06 -04:00
jperras
1a4f806bfd Merge branch '1.3-misc' into 1.3-misc-set-apply 2009-09-25 14:20:28 -04:00
jperras
c2ec96067a Refactoring ConnectionManager & tests. 2009-09-25 11:08:34 -04:00
jperras
7e5fe04a77 Merge branch '1.3-misc' into 1.3-misc-plugin-datasources 2009-09-24 23:14:12 -04:00
jperras
c3cd98af42 Implementing loading datasources from plugins. 2009-09-24 22:56:02 -04:00
mark_story
06cf97459a Fixing XmlHelper::elem() when value is null and cdata = true. Removing empty invalid tag.
Test cases added.
Fixes #127
2009-09-24 22:43:31 -04:00
jperras
12c5ebf5ba Moving test plugin datasource to the correct location. 2009-09-24 19:37:07 -04:00
jperras
0c0e5d111b Adding stub datasource to test_app. 2009-09-24 19:21:09 -04:00
jperras
23954a4b5e Fixing incorrect path to test file in database group test. 2009-09-24 16:34:27 -04:00
jperras
fe32d38334 Adding connection manager test to database group tests. 2009-09-24 16:32:31 -04:00
jperras
eb43faf7cc Adding connection manager tests to database group test. 2009-09-24 16:29:35 -04:00
jperras
4bf5244073 Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource(). 2009-09-24 16:26:56 -04:00
jperras
ffad7a74a2 Merge branch '1.3-misc-plugin-datasources' into 1.3-misc 2009-09-24 16:26:17 -04:00
jperras
ed74653d72 Adding tests for ConnectionManager, and fixing a missing return value for ConnectionManager::loadDataSource(). 2009-09-24 16:23:39 -04:00
mark_story
ba7b2e9de6 Refactoring test cases to contain separate test methods for timestamped assets. 2009-09-24 00:28:27 -04:00
mark_story
bf3fe1f4f6 Merge branch '1.3-timestamp' into 1.3-misc 2009-09-24 00:22:18 -04:00
mark_story
ee514f3fc6 Adding Helper::assetTimestamp()
Refactor's repeated code from Html and Javascript Helpers.
Test cases added.
2009-09-23 23:45:11 -04:00
mark_story
26d2237df0 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-23 23:30:55 -04:00
ADmad
de4737323f Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-23 23:30:34 -04:00
jperras
98bdaaf87e Adding App::import() tests for plugin datasources. 2009-09-23 23:12:22 -04:00
jperras
33117ee13d Adding additional class_exists tests to configure.test.php for App::import usage. 2009-09-23 23:09:15 -04:00
jperras
b2eb1882a4 Adding convenience method Set::apply(). 2009-09-23 21:03:09 -04:00
mark_story
c330934b93 Adding test cases for view task. 2009-09-23 13:27:47 -04:00
jperras
1ed4a63416 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-09-22 22:49:23 -04:00
mark_story
022f8ccaa2 Making conditions easier to read.
Adding additional test for image timestamping.
Refs #108
2009-09-22 19:04:40 -04:00
ADmad
07a89cd953 Updated Html and Javascript helpers to suffix asset urls with timestamp even when the app is run off a subfolder on the domain
Signed-off-by: Mark Story <mark@mark-story.com>
2009-09-22 18:57:30 -04:00
renan.saddam
7116c01642 Fixing Xml::toArray() when blank nodes are provided. Fixes #87. 2009-09-22 17:58:12 -03:00
renan.saddam
42fac9ec71 Fixing Xml::toArray() when blank nodes are provided. Fixes #87. 2009-09-22 17:47:11 -03:00
davidpersson
5ac7361a76 Removing support for string input in Shell::nl().
Updating Shell::out() and Shell::err() parameter usage.
Updating method to always return strings, renaming parameter.
Updating docblocks.
Updating test.
2009-09-21 22:39:45 +02:00
jperras
2b0d13733e Fixing parameter ordering error of array_map in AuthComponent::allow(). Adding test. 2009-09-21 12:14:20 -04:00
mark_story
42017e95c6 Merge branch '1.3-console' into 1.3
Conflicts:
	cake/tests/cases/console/libs/schema.test.php
2009-09-20 19:05:03 -04:00
mark_story
89bf3440da Fixing failing test. 2009-09-20 19:02:05 -04:00
mark_story
3c21fa32ba Changing syntax to reflect updated api's 2009-09-20 18:38:26 -04:00
mark_story
c1056676ec Fixing failing test. 2009-09-20 18:31:49 -04:00
mark_story
a839c29eb8 Fixing use of deprecated methods in Auth test. 2009-09-20 18:16:26 -04:00
mark_story
37b575496c Fixing capitalization in ControllerTask & test cases. 2009-09-20 18:13:53 -04:00
mark_story
50bd279018 Merge branch '1.3-auth' into 1.3 2009-09-20 17:53:23 -04:00
mark_story
e6cc81226d Merge branch '1.3-jshelper' into 1.3 2009-09-20 17:46:30 -04:00
mark_story
a3cd80bf52 Merge branch '1.3-bake' into 1.3 2009-09-20 17:42:43 -04:00
jperras
ca632461f1 Adding tilde (~) to accepted characters for URL validation. Fixes #52, and legacy trac enhancement 6213. 2009-09-19 12:14:47 -04:00