Commit graph

2445 commits

Author SHA1 Message Date
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
mark_story
d5376e64aa Adding patch from 'Ceeram' and 'TehTreag' to implement automatic updating of Aro/Aco nodes created AclBehavior. Test cases added. Fixes #33 and #4261 2009-09-19 01:17:20 -04:00
mark_story
b95d9e1060 Fixing time tracking on group test cases. 2009-09-18 00:54:13 -04:00
renan.saddam
317049b736 Fixing bug when value is '0', it was generating a blank node. 2009-09-17 23:08:32 -03:00
mark_story
0d6f6232e6 Updating test case to fix issues when running in group context. 2009-09-17 20:23:36 -04:00
mark_story
e0b6b25365 Fixing inherited public properties not being set in SessionHelper.
Adding tests for SessionHelper construction and the setting of inherited properties.  Fixes #94
2009-09-17 19:57:56 -04:00
mark_story
99095daf5c Adding drop statements so tables aren't left in the test db. 2009-09-16 02:02:40 -04:00
mark_story
5717e3b59c Merge branch '1.2' into 1.2-merger
Conflicts:
	app/webroot/test.php
	cake/VERSION.txt
	cake/bootstrap.php
	cake/config/config.php
	cake/console/cake.php
	cake/console/libs/schema.php
	cake/console/templates/skel/webroot/test.php
	cake/libs/configure.php
	cake/tests/cases/console/libs/schema.test.php
	cake/tests/cases/libs/debugger.test.php
	cake/tests/cases/libs/model/model_write.test.php
	cake/tests/fixtures/aco_fixture.php
2009-09-16 01:23:49 -04:00
mark_story
4b4f3b1b82 Removing deprecated methods from test cases. 2009-09-16 00:33:29 -04:00
mark_story
e5083b88c4 Merge branch '1.3-test' into 1.3-misc 2009-09-14 23:57:35 -04:00
mark_story
f1194a4ec9 Commiting fix to pass tests in last commit.
Making View::renderCache tests more specific.
2009-09-14 23:53:04 -04:00
mark_story
8cf7dbbbfa Adding tests for CacheHelper triggering. Was broken by previous refactoring. 2009-09-14 23:49:20 -04:00
renan.saddam
78e01cdb47 Refactoring ExtractTask to support extraction from multi-directories and splitting domain in different files. 2009-09-15 00:43:59 -03:00
mark_story
01cf40bf12 Adding automatic use of $options for $disabledOptions in PaginatorHelper::next() and PaginatorHelper::prev(). Thanks to 'joaquin_win' for the initial patch. Refs #83 2009-09-14 23:06:24 -04:00
mark_story
4a6412fb27 Adding tests for AuthComponent::action().
Adding plugin support for AuthComponent in actions mode.  Refs #33
2009-09-14 00:29:33 -04:00
mark_story
c94698500b Adding test case for Auth with authorize = actions. 2009-09-14 00:15:06 -04:00
mark_story
090eb27be1 Updating imports in AuthComponent and AuthComponent test case. 2009-09-13 23:42:25 -04:00
mark_story
95555eb1bd Adding skips for cache() and clearCache() if caching is disabled. 2009-09-13 14:03:16 -04:00
mark_story
326424592d Merge branch '1.2' into 1.2-merger
Conflicts:
	cake/VERSION.txt
	cake/config/config.php
	cake/dispatcher.php
	cake/libs/controller/scaffold.php
	cake/libs/inflector.php
	cake/libs/view/view.php
	cake/tests/cases/libs/controller/scaffold.test.php
	cake/tests/cases/libs/inflector.test.php
	cake/tests/cases/libs/view/view.test.php
	cake/tests/fixtures/counter_cache_post_fixture.php
	cake/tests/fixtures/counter_cache_user_fixture.php
2009-09-13 13:52:58 -04:00
mark_story
ea7df4f7ce Adding time and memory output to the test suite results. 2009-09-13 13:29:44 -04:00
mark_story
edf5f2d6e2 Updating doc blocks. 2009-09-13 13:11:37 -04:00
mark_story
e9c747badc Updating all group tests to extend TestSuite instead of the deprecated GroupTest class. Updating the TestManager. 2009-09-11 21:43:53 -04:00
mark_story
76f6e3dd07 Merge branch '1.3-numberhelper' into 1.3-misc 2009-09-11 21:07:30 -04:00
mark_story
c49662e2ca Fixing deprecation error due to changes in API 2009-09-10 22:56:44 -04:00
mark_story
9c41efd6fe Adding NumberHelper::addFormat and test cases. Refs #5630 2009-09-10 22:54:49 -04:00
mark_story
818e7340f7 Adding test cases from #5630 2009-09-10 22:29:10 -04:00
mark_story
5f6015c3c4 Updating file headers and removing @static. 2009-09-10 22:23:48 -04:00
renan.saddam
4ec75c6052 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-09-10 12:32:52 -03:00
renan.saddam
2e8bbd5eb1 Adding docblock for the new variable used for logging. Making the CakeLog::handleError logs the same output as in Debugger::handleError. 2009-09-10 12:32:21 -03:00
mark_story
0065005f95 Fixing custom error class not being used if error for field is a named index. Test case added. Fixes #76 2009-09-10 09:57:23 -04:00
nate
fd6538fc72 Changes Model::find() to allow modification of DataSource connection during callbacks. 2009-09-10 09:28:55 -04:00
jperras
c48d9794f6 Fixing incorrect optional parameters passed to TreeBehavior::children() in TreeBehavior test case. Fixes errors & test failures when running under PHP 5.3. 2009-09-09 21:15:22 -04:00
mark_story
4766f62029 Merge branch '1.3-logging' into 1.3-misc 2009-09-09 11:08:18 -04:00
jperras
5a432c6f71 Applying fix from Ceeram for updateAll joins on model relations with no foreign key. Fixes #69. 2009-09-09 00:00:53 -04:00
mark_story
d0e6a79f82 Updating file headers.
Adding CakeLog::handleError which will log errors when debug = 0.
Test cases added.
2009-09-07 23:59:31 -04:00
mark_story
cac09481ac Removing support for DEBUG constant. Use Configure::write('debug', 2) instead.
Adding 'log' interaction to error reporting settings controlled by Configure::write().
2009-09-07 23:28:50 -04:00
mark_story
90b6272a14 Updating test case for new values in error reporting. 2009-09-07 22:53:08 -04:00
mark_story
11ceae2e96 Merge branch '1.3' into 1.3-logging 2009-09-07 22:41:31 -04:00
mark_story
91503f8f8a Adding patch from jperras to fix issues with non 'app' APP_DIR values. 2009-09-07 18:33:16 -04:00
mark_story
12e0652943 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-09-07 14:47:53 -04:00
mark_story
6821e7cec9 Fixing failing test because of unfilled SVN tag expansions. 2009-09-07 14:45:24 -04:00
mark_story
9445bd1604 Updating test case for new values in error reporting. 2009-09-07 14:41:57 -04:00
jperras
daadac03cc Merge branch 'bug-22-schema-shell' into 1.2 2009-09-07 12:34:12 -04:00
jperras
24351b5a21 Backporting bugfix for #22 from 1.3-console to 1.2. Adds schema shell test cases, fixes for schema object references, i18n of schema schell output strings. 2009-09-07 12:24:38 -04:00
jperras
4dc656fd91 Updating EmailComponent smtp HELO handling to account for non-existence of HTTP_HOST environment variable when PHP SAPI is CLI. Fixes #41. 2009-09-07 11:18:11 -04:00
jperras
2484179e36 DboMssql::value() now returns NULL for numeric column types (float, integer, binary) when the column data is empty. Fixes #28. 2009-09-06 13:57:24 -04:00
Ali Farhadi
12457ac6f9 Adding testcase for bug #44 2009-09-05 00:53:06 -04:00
AD7six
e47316e74f Correcting App::import usage 2009-09-04 11:58:20 -07:00
mark_story
4f4411126c Fixing empty arrays being dropped with Set::sort(). Fixed #67 2009-09-03 23:09:27 -04:00
mark_story
b5a38d69a5 Merge branch '1.2-dirty' into 1.2 2009-09-03 22:47:45 -04:00
mark_story
cf3521737f Fixing selected with interval not selecting the correct option. Fixes #70. 2009-09-03 22:47:17 -04:00
mark_story
ce7864920f Adding ability to add arbitrary attributes to HtmlHelper::scriptBlock. Test case added. 2009-09-03 13:50:53 -04:00
mark_story
ead3b0ecf6 Allowing HtmlHelper::script() to take an array of options, allows for custom attributes to be added to script include tags. Test cases added. Fixes #2955 2009-09-03 13:45:39 -04:00
mark_story
c963d5cc43 Updating file headers. 2009-09-03 12:43:13 -04:00
mark_story
2ff5334347 Minor refactor to remove method calls to Inflector::camelize.
Adding tests to ensure references are maintained.
2009-09-03 09:37:25 -04:00
evilbloodydemon
75695341fa Helpers addressed by $this->Helper->func() 2009-09-03 00:58:26 -04:00
renan.saddam
0e9007e060 Making sure we are not making non-uniques and non-primary keys index. Also changing basic fixture schema to make tests pass. 2009-09-02 22:07:58 -03:00
mark_story
c0a19ced14 Adding DboSource::getLog() and test case. 2009-09-01 23:23:47 -04:00
mark_story
fb476f17cc Fixing Set::extract run against hasMany records that are the result of a find('first'). Test case added. 2009-09-01 13:18:20 -04:00
mark_story
4d458e93b6 Updating SessionHelper::flash() to use elements for custom flash wrapping html instead of layouts. 2009-09-01 00:03:56 -04:00
mark_story
17e81ab346 Updating session component, to not use layout, and use elements instead.
Tests updated.
2009-08-31 23:59:40 -04:00
mark_story
1bedd8418b Merge branch '1.3-deprecation' into 1.3-misc 2009-08-31 23:41:41 -04:00
mark_story
3dc12cb6da Updating model tests to reflect deprecation of Model::bind() and Model::delete() aliases. 2009-08-31 23:40:47 -04:00
mark_story
9afa4d1c3a Updating test case to reflect API changes. 2009-08-31 22:52:15 -04:00
mark_story
4ee70c01a8 Updating tests to reflect API deprecations. 2009-08-31 22:50:46 -04:00
mark_story
b5605b6408 Updating file headers 2009-08-31 22:48:22 -04:00
mark_story
fe3514371f Updating folder + test case to reflect api changes. 2009-08-31 22:47:37 -04:00
mark_story
f6ce178d85 Simplifying message generation.
Fixing inflection of model names.
Adding tests for flash page generation. Refs #64
2009-08-31 14:24:50 -04:00
mark_story
0097e8c14b Updating Scaffold to merge hasAndBelongsToMany keys when generating field lists for scaffolded forms. Fixes #48 2009-08-31 14:22:37 -04:00
mark_story
a678a603c0 Simplifying message generation.
Fixing inflection of model names.
Adding tests for flash page generation. Refs #64
2009-08-31 13:48:32 -04:00
mark_story
b4a1c4723d Making AuthComponent::deny() case insensitive like allow(). Fixes #6261 2009-08-30 20:41:39 -04:00
mark_story
9c82d19968 Adding tests for missingBehaviorClass and missingBehaviorError methods. 2009-08-30 19:38:17 -04:00
mark_story
81cb097959 Merge branch '1.3-behavior-error' into 1.3-misc 2009-08-30 19:33:43 -04:00
mark_story
c19c1a7828 Fixing issues with cakeError call.
Adding tests for cakeError being called with non-existant Behaviors.
2009-08-30 19:33:21 -04:00
mark_story
29de5e515f Allowing Controller::flash() layout to be set with a parameter. Fixes #5034 2009-08-27 23:40:36 -04:00
mark_story
213b78727f Removing use of e() from core and test suite. 2009-08-27 22:51:10 -04:00
mark_story
7c4d60abe8 Adding patch from 'grncdr' to allow default direction to be set for sort links created with PaginatorHelper::sort. Fixes #5151 2009-08-26 23:55:19 -04:00
mark_story
4f2d415663 Applying patch from 'kuja' to give default class names to links generated by Paginator::sort().
Fixes #6239
2009-08-26 23:33:13 -04:00
mark_story
38a4b619e6 Adding default classes to next and prev links.
Switching next() and prev() to use span by default.
2009-08-26 22:55:24 -04:00
mark_story
136b4db7ad Deprecating $escape for HtmlHelper::tag() use $attributes['escape'] instead. Test case added. 2009-08-26 22:46:49 -04:00
mark_story
2dca77cbcb Updating Scaffold to merge hasAndBelongsToMany keys when generating field lists for scaffolded forms. Fixes #48 2009-08-25 23:34:19 -04:00
mark_story
31ec714e2e Adding View::_paths() optimization.
Test cases added.
Refs #49
2009-08-23 23:13:56 -04:00
mark_story
325446a8b3 Updating View::_paths to remove an always miss file_exists() check.
Test case added.
Refs #49
2009-08-23 22:43:51 -04:00
jperras
6f8f4c5a05 Adding waves -> wave as irregular singularization rule. Fixes #47. 2009-08-22 20:26:33 -04:00
mark_story
47d9181313 Adding test case from 'mradosta'.
Fixing issue with non-zero indexed arrays and Set::extract()
Fixes #6
2009-08-21 23:18:27 -04:00
mark_story
3f0f4b901d Changing line endings to LF 2009-08-21 12:52:46 -04:00
mark_story
3b95b4c95d Merge branch '1.3' into 1.3-misc 2009-08-20 01:12:09 -04:00
mark_story
ae715ef882 Adding in fallback for sql & schema dirs.
Starting to add plugin support for schema shell.
tests added.
2009-08-20 01:07:21 -04:00
mark_story
cca3281f8c Fixing complex expression handling in DboSource::fields(). Making AS a variable controlled by implementing dbo.
Test cases added.
Fixes #38
2009-08-19 13:03:36 -04:00
AD7six
7c4dfed299 Updating view and controller tasks to use (_singluar|_plural)HumanName functions
Modifying the test case to expect humanized forms
2009-08-19 10:17:10 +02:00
AD7six
ce8dd039da If there are is more than one theme, the test will hang waiting for the user to select the theme to use 2009-08-18 10:14:39 +02:00
mark_story
a7499be154 Adding missing & operators.
Adding tests for run update.
Adding -f param to schema run update to allow for testing and forcing of table comparison.  Skips model checks and uses tables only instead.
2009-08-14 20:06:27 -04:00
gwoo
474ec34a5d Merge commit 'origin/1.3-dev' into 1.3 2009-08-14 12:33:43 -04:00
gwoo
368c7556d4 Merge branch '1.3-console' into 1.3 2009-08-14 12:32:54 -04:00
mark_story
e306b65908 Updating View test case to work with updated API's 2009-08-14 12:08:33 -04:00
mark_story
5a971ddbf0 Fixing Xml::toArray() Where camelcased data was collapsed and corrupted. Causing unpredictable data structures with empty tags. Minor changes to existing behavior. See modified test cases. Fixes #8 2009-08-13 22:47:17 -04:00
jperras
deed69ea37 Adding ability to input an array parameter for 3rd argument of TextHelper::highlight(). Implements #17. 2009-08-13 13:32:34 -04:00
renan.saddam
c84b4cf36d Changing AuthComponent::deny to accepts same param as AuthComponent::allow, tests added 2009-08-13 13:08:30 -03:00
jperras
adc198805f Dispatcher::parseParams() now works with file uploads that are not indexed by model. Fixes #9 2009-08-13 11:29:00 -04:00
renan.saddam
8d6135a8d1 Adding support for plugin models used in Auth::$userModel 2009-08-13 11:39:59 -03:00
burzum
417bdb4514 Fixing building of the right vendor path in the dispatcher in the case the plugin name appears again in the path 2009-08-12 16:08:31 +02:00
mark_story
2893b29e11 Fixing inflection of Taxes. Fixes #15 2009-08-12 09:46:18 -04:00
AD7six
9d1e556486 Revert "mend"
This reverts commit a0f42640cc10342f96effe4d08be188bb51bd0db.
2009-08-12 09:46:18 -04:00
mark_story
ae628f7f72 Applying patch from 'savant' Fixes usage of deprecated methods. Fixes #11 2009-08-12 09:46:18 -04:00
mark_story
0a1d8ca92a Updating test cases to reflect changes in default templates. 2009-08-12 09:46:17 -04:00
AD7six
b53c7339c4 mend 2009-08-12 09:46:17 -04:00
mark_story
31d136ca67 Making constructClasses() call run against the correct object. test cases updated.
Fixes #4
2009-08-12 09:46:17 -04:00
mark_story
73a63a4b65 Fixing whitespace. 2009-08-12 09:45:43 -04:00
mark_story
459fcb7a1a Applying patch from 'evilbloodydemon'. Fixes JqueryEngine::request() when wrapCallbacks is true. Test cases added. Fixes #20 2009-08-12 09:45:42 -04:00
mark_story
08f0c7c157 Fixing method dispatching errors in JsHelper with regards to Object::object, and PHP4 workarounds. 2009-08-12 09:45:42 -04:00
mark_story
a7e300a7c1 Adding warning errors when an incompatible class is used. 2009-08-12 09:45:42 -04:00
mark_story
29881561d3 Adding tests to test arbitrary class injection. 2009-08-12 09:45:42 -04:00
mark_story
b1a27b1760 Adding ability to inject an ajax provider class into paginator helper. updating tests. 2009-08-12 09:45:42 -04:00
mark_story
74448e4dee Adding test cases for run create in Schema shell. 2009-08-10 21:54:29 -04:00
AD7six
98b04dc0e7 Merge branch '1.3-console' of dev@code.cakephp.org:cakephp into 1.3-console 2009-08-09 22:32:28 +02:00
AD7six
de87fbd484 updating console output to use a more concise format
typing "cake" on the command line will now output

...
Available Shells:
 acl [CORE]                     bake [CORE]                    i18n [CORE]                    testsuite [CORE]
 api [CORE]                     console [CORE]                 schema [CORE]

To run a command, type 'cake shell_name [args]'
...

Auto adjusting the width on *nix systems
2009-08-09 12:54:41 +02:00
mark_story
f70b97f4cb Adding more tests for generate(). 2009-08-08 23:46:00 -04:00
mark_story
a27575382b Adding tests for generate() from jperras 2009-08-08 23:21:24 -04:00
mark_story
4965551084 Adding test cases for dump() 2009-08-08 23:00:40 -04:00
mark_story
12b94756d0 Adding tests for view() 2009-08-07 22:28:28 -04:00
mark_story
3c46b51b7f Adding test cases for startup() 2009-08-07 22:19:40 -04:00
mark_story
32754c4261 Adding test case for SchemaShell 2009-08-07 22:10:39 -04:00
mark_story
c305b7a410 Adding tests to AclShell::view() 2009-08-07 08:37:31 -04:00
renan.saddam
ae89e709d2 Refactoring extract shell. Supporting use of $foo['bar'] as $count. 2009-08-06 18:14:25 -03:00
renan.saddam
ff04c7668a Fixing DS for Windows 2009-08-06 15:59:47 -03:00
mark_story
8d351d90b3 Updating file headers. 2009-08-05 23:43:01 -04:00
mark_story
eda74d08b4 Updating view() to use node references.
updating test cases to use new formating.
2009-08-05 23:41:25 -04:00
mark_story
e6b32e21ad Adding tests for getPath and inherit.
Refactoring the output of getPath
2009-08-05 23:13:48 -04:00
mark_story
3aa56e82c9 Fixing typo. 2009-08-05 12:20:12 -04:00
mark_story
cd9dd97eff Adding test cases for AclShell 2009-08-05 00:37:53 -04:00
mark_story
9e36d1bedc Fixing whitespacing on aco_fixture.
Adding tests to AclShell::grant()
Refactoring __getParams()
2009-08-05 00:23:59 -04:00