Commit graph

9449 commits

Author SHA1 Message Date
José Lorenzo Rodríguez
4cebe55a9b Merge remote-tracking branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	app/webroot/index.php
	lib/Cake/Controller/Component/AuthComponent.php
	lib/Cake/Network/CakeRequest.php
	lib/Cake/tests/cases/libs/controller/components/auth.test.php
2011-02-21 22:28:30 -04:30
Juan Basso
c5f291958b Adding extra protection to cake console be executed in driver root (windows). 2011-02-21 17:36:32 -03: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
0b75906649 Adding docs about the ability to set settings in the helper as well. 2011-02-21 14:08:29 -05:00
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
Juan Basso
e1b3703c20 Adding a protection to cake console be executed in driver root (windows). Fixes #1408. 2011-02-21 15:46:55 -03:00
mark_story
6338299e77 Merge branch 'clean-get' into 2.0 2011-02-21 12:47:41 -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
2190596764 Fixing htaccess file to not use GET params anymore. 2011-02-20 13:57:38 -05:00
mark_story
23bacfc0c7 Adding new checks, so missing favicons don't flood the error logs. 2011-02-20 13:29:19 -05:00
mark_story
8991095045 Removing references to GET['url'] & favicon, as there is no more GET[url]. 2011-02-20 13:12:04 -05:00
mark_story
24935afff4 Removing remaining references to $_GET['url']. 2011-02-19 22:27:38 -05:00
mark_story
ea52f880fd Removing useless property. 2011-02-19 22:26:44 -05:00
mark_story
630d0a9887 Removing redundant method. 2011-02-19 22:26:12 -05:00
mark_story
8cbd9fc361 Fixing viewClass name on Scaffold. 2011-02-19 22:21:58 -05:00
mark_story
633fcba4e8 Fixing viewClass name on Scaffold. 2011-02-19 22:21:38 -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
52467a7e18 Moving assignment of base into _base(). 2011-02-19 13:17:05 -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
mark_story
0cb5394d0b Adding static variable to allow changing which get param cake uses. Refs #1483 2011-02-17 22:15:16 -05:00
mark_story
5c4854b897 Adding omitted return that would prevent users from reaching the login page after being redirected to it. Tests added. Fixes #1542 2011-02-17 07:44:41 -05:00
mark_story
c638443b4d Merge branch '2.0-auth' into 2.0 2011-02-14 22:45:39 -05:00
José Lorenzo Rodríguez
c1e81a20cd Moving more files to the new folder 2011-02-13 23:20:49 -04:30
José Lorenzo Rodríguez
dfc0a28d7f Merge remote branch 'origin/2.0' into 2.0-class-loading 2011-02-13 23:11:38 -04:30
José Lorenzo Rodríguez
6e4f4efb79 Merge remote branch 'origin/2.0' into 2.0-class-loading
Conflicts:
	cake/bootstrap.php
	lib/Cake/Console/Command/TestSuiteShell.php
	lib/Cake/Console/TaskCollection.php
	lib/Cake/Controller/ComponentCollection.php
	lib/Cake/Controller/Controller.php
	lib/Cake/Core/App.php
	lib/Cake/Model/BehaviorCollection.php
	lib/Cake/Network/CakeRequest.php
	lib/Cake/TestSuite/CakeTestSuiteDispatcher.php
	lib/Cake/TestSuite/CakeWebTestCase.php
	lib/Cake/TestSuite/TestManager.php
	lib/Cake/TestSuite/TestRunner.php
	lib/Cake/View/HelperCollection.php
	lib/Cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
	lib/Cake/tests/cases/libs/test_manager.test.php
2011-02-13 23:10:19 -04:30
mark_story
e60376bef9 Removing a bunch of code that can be reached through inheritance.
Adding a doc block.
2011-02-13 22:19:49 -05:00
mark_story
51dcb18742 Adding support for AppFixtureManager as well as option flag selection. 2011-02-13 19:01:53 -05:00
mark_story
d20f68c44e Making Model::setSource() eager again to fix issues where joined models
would not have the table prefixes correctly configured.  Fixes #1507
2011-02-13 18:42:04 -05:00
mark_story
7f8c98d9de Fixing typo and exposing fixture manager parameter to webrunner. 2011-02-13 15:15:01 -05:00
mark_story
844c6315c1 Fixing issue where a non CakeException would break things.
Test added.
2011-02-13 15:14:29 -05:00
mark_story
451b3fd18d Going back to using the old time and memory calculations/output. 2011-02-13 15:01:00 -05:00
mark_story
912927db18 Removing duplicate tag. 2011-02-13 14:56:35 -05:00
mark_story
f6e9b5b254 Removing TestManager from the group tests.
Fixing a failing case on the testsuite shell.
Fixing Debugger from stealing the error handler from PHPUnit.
2011-02-13 14:56:35 -05:00
mark_story
1c9808fdca Creating a factory method for the runner creation. 2011-02-13 14:56:35 -05:00
mark_story
78dd89027d Removing comments left in on previous commit. 2011-02-13 14:56:35 -05:00
mark_story
9f4597effd reformatting code. 2011-02-13 14:56:35 -05:00
mark_story
39e05bce4a Using PHPUnit internals for more things.
Removing code that is also present in PHPUnit.
Updating testsuite shell to use loader class.
2011-02-13 14:56:35 -05:00
mark_story
e5c898a4d2 Moving methods into the loader class.
Getting rid of lame functions and using Spl more effectively.
2011-02-13 14:56:35 -05:00
mark_story
0c09d08585 Removing duplicate methods. 2011-02-13 14:56:35 -05:00
mark_story
4f65d0dbed Fixing issue where document start would be sent multiple times. 2011-02-13 14:56:35 -05:00
mark_story
846a0587fc Getting rid of TestManager. 2011-02-13 14:56:34 -05:00
mark_story
00c56facdd Removing CakeWebTestCase it doesn't work anymore. 2011-02-13 14:56:34 -05:00
mark_story
f84046c802 Moving a require.
Adding some doc blocks, and making the loader not double append test case suffixes.
2011-02-13 14:56:34 -05:00
mark_story
08fba9b280 Making coverage reports work from the webrunner. 2011-02-13 14:56:34 -05:00