Commit graph

4944 commits

Author SHA1 Message Date
mark_story
b292f4ffaa Fixing tests that were failing due to missing methods, and changes in CakeRoute.
Making ExceptionRenderer pass in the current request to the controller
constructor.  This fixes fatal errors on PrivateActionExceptions.
2011-03-10 22:01:56 -05:00
mark_story
0cc55d8f45 Removing calls to Dispatcher::_stop(). Updating tests. Fixes #1578 2011-03-09 22:27:19 -05:00
mark_story
c8f33b77a1 Fixing failing tests, and issues around Controller::$view not getting
set properly.
2011-03-09 07:31:11 -05:00
mark_story
de57802f05 Fixing left over action from previos refactoring of viewClass/view. 2011-03-07 21:50:53 -05:00
mark_story
9cf940853b Updating router tests to use/expect greedyNamed.
Removing code that has been moved to CakeRoute or is no longer needed.
2011-03-03 07:32:06 -05:00
mark_story
217938a970 Moving pass key restructuring into CakeRoute.
Adding tests for that and http header matching.
2011-03-03 07:30:22 -05:00
mark_story
15275eddac Moving matchNamed() into CakeRoute. This will allow its removal from Router. 2011-03-03 06:54:46 -05:00
mark_story
97175aac90 Making greedy -> greedyNamed its clearer and doesn't consume a possibly easy to use named parameter key.
Expanding tests for named parameter rules/conditions.
2011-03-03 06:49:11 -05:00
mark_story
3eef281e1c Adding tests for named parameter rules on the route level. 2011-03-03 06:36:02 -05:00
mark_story
636188efeb Adding tests for array named params from router test to cakeroute test. 2011-03-03 06:22:59 -05:00
mark_story
cf26a8e430 Initial port of Router::getArgs() to CakeRoute. 2011-03-03 06:11:41 -05:00
mark_story
b70a512470 Moving Router::$named to be protected, and adding an accessor method. This will help with later refactoring. 2011-03-02 22:08:30 -05:00
mark_story
a6abd61f3f Removing Dispatcher::$here, it wasn't really used outside of a cached() which had a param that it just ignored. Making Dispatcher::cached() pay attention to its parameter.
Updating tests.
2011-03-02 21:52:25 -05:00
mark_story
af16b13e5f Fixing issues with double base dir in FormHelper::create(). Fixes #1568 2011-03-02 21:47:11 -05:00
mark_story
2145fd8078 Adding CakeRequest::here() for getting complete 'here' values including query string parameters. $request->here does not include query string params.
Adding test cases.
2011-03-02 21:46:28 -05:00
mark_story
e3841955dc Merge branch '2.0' of github.com:cakephp/cakephp into 2.0 2011-03-01 22:23:57 -05:00
mark_story
3ea8c2246a Merge branch '1.3' into merger
Conflicts:
	cake/console/cake.php
	cake/dispatcher.php
	cake/libs/controller/components/cookie.php
	cake/libs/view/helper.php
	cake/libs/view/helpers/ajax.php
	cake/tests/cases/dispatcher.test.php
	cake/tests/cases/libs/model/model_validation.test.php
	cake/tests/cases/libs/view/helpers/ajax.test.php
	cake/tests/lib/cake_test_fixture.php
2011-03-01 22:21:44 -05:00
Jeremy Harris
b138c84df3 Merge remote branch 'upstream/2.0' into 2.0 2011-03-01 19:02:34 -08:00
Jeremy Harris
06f9fc0fc9 Made form post to the current location by default. Fixes #1418 2011-03-01 17:31:02 -08:00
Jeremy Harris
2977448891 Added more options to NumberHelper::currency() to allow for better flexibility in defining formats. Fixes #1267 2011-03-01 17:14:15 -08:00
ADmad
d999650d5e MediaView now forces download of unknown file types. Closes #140 2011-02-27 06:31:15 +05:30
Juan Basso
2414ad8c8f Merge branch '2.0-models' into 2.0 2011-02-26 19:10:07 -03:00
mark_story
a52756d550 Fixing issue with empty delimeter notice error when installed at the webroot using url rewriting. 2011-02-26 15:37:28 -05:00
mark_story
72245ebb0c Making debug() not html escape in cli contexts. 2011-02-26 15:37:28 -05:00
Juan Basso
4828e16762 Updating tests to use new find notation. 2011-02-25 22:04:48 -03:00
Juan Basso
a091302c92 Removed the isInterfaceSupported method. It not make sense in PHP5. 2011-02-25 12:54:57 -03:00
mark_story
e05c6cd83f Fixing issue where actions starting with a prefix but not followed by an _ would get mangled when going through router::url().
Fixes #1556
2011-02-24 16:43:13 -05:00
José Lorenzo Rodríguez
19bcec599b Merge branch '2.0' of github.com:cakephp/cakephp into 2.0
Conflicts:
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
2011-02-24 01:38:11 -04:30
José Lorenzo Rodríguez
69b70249da Fixing more issues with database prefixes 2011-02-24 01:31:03 -04:30
José Lorenzo Rodríguez
ea7f0bf900 Fixing some tests to make them run with table prefixes 2011-02-23 23:44:48 -04:30
mark_story
9367a10522 Merge branch '1.3' of github.com:cakephp/cakephp into 1.3 2011-02-23 21:07:10 -05:00
mark_story
98df3e331f Fixing DboMysql not quoting database names in listSources.
Updated tests.
Fixes #1552
2011-02-23 11:36:41 -05:00
José Lorenzo Rodríguez
00f3aaf615 Fixing some issues in ACL related classes when using database prefixes 2011-02-23 01:22:23 -04:30
José Lorenzo Rodríguez
fc060b5e9c Starting to lazy load database conenctions again, model read tests fixed 2011-02-23 00:43:56 -04:30
Juan Basso
52163b4b05 Allowing strings in cc and bcc. Fixes #1553. 2011-02-22 21:23:15 -03:00
mark_story
d4cdc118d2 Fixing notice error that happens when you run tests for plugins. 2011-02-22 08:41:36 -05:00
mark_story
6426b7ec04 Fixing issues with / routes, as PATH_INFO doesn't exist.
Changing foreach loop for if elseif blocks, and removing use of env().  The values we want will never be anywhere else by _SERVER, so don't incur extra overhead looking places it won't be.
Added tests.
2011-02-21 22:30:01 -05:00
ADmad
1f2afd8d3f Removing deprecated function TimeHelper::relativeTime() which was simply an alias for TimeHelper::timeAgoInWords() 2011-02-22 01:27:46 +05:30
ADmad
709ed7675b Fixing typo in PHPUnit include file path 2011-02-22 01:21:26 +05:30
mark_story
c64dd9d352 Adding the ability to pass additional information into the rendering of flash messages. Allows you to keep keep code DRY by moving repeated settings into the view.
Added tests.
Fixes #792
2011-02-21 14:08:29 -05:00
mark_story
6338299e77 Merge branch 'clean-get' into 2.0 2011-02-21 12:47:41 -05:00
mark_story
1f9bbbce53 Pulling windows specific tests into a separate test method. 2011-02-21 10:48:34 -05:00
mark_story
440a89051d Fixing test that didn't fail as expected. 2011-02-20 22:33:10 -05:00
mark_story
d1821b3f9d Removing $request->query[url]. This simulated value is also available at $request->url, and having it in the query array confuses things, as GET[url] no longer exists.
Fixing failing tests elsewhere in the framework.
2011-02-20 21:52:20 -05:00
mark_story
24369cf04a Removing GET param, and making CakeRequest use PATH_INFO and SCRIPT_NAME to determine base paths and request urls.
Updated tests.  Removed test for base path injection, as PHP_SELF is no longer used to compute the base path, and users cannot influence SCRIPT_NAME.
2011-02-19 22:20:55 -05:00
mark_story
db00915dea Removing complicated logic that does a reasonable amount of unnecessary work. Favouring $_SERVER['PATH_INFO'] over more complicated, logic. This may cause issues with IIS 5.x, but its a very old release now.
Updating tests to match values that come out of IIS7.
2011-02-19 18:20:54 -05:00
mark_story
79ec16364a Refactoring tests to use a generator. 2011-02-19 12:36:27 -05:00
mark_story
1ee6c1ee45 Removing some no longer required method calls. 2011-02-19 11:30:09 -05:00
mark_story
c15d0132f3 Adding more environment detection tests. 2011-02-19 10:00:34 -05:00
mark_story
63f07d3f0f Making Authorize and Authenticate objects have constructors like other components.
Adding ComponentCollection as a argument for the constructor, this unifies the two types of objects and makes them consistent with other components.  It also allows authenticate/authorize objects to access other components, thanks to hiromichan for the idea. Tests updated.
2011-02-17 23:17:07 -05:00