Commit graph

9374 commits

Author SHA1 Message Date
mark_story
8cbd9fc361 Fixing viewClass name on Scaffold. 2011-02-19 22:21:58 -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
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
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
mark_story
16481d7b7e Running individual tests from the web runner now works.
Adding some more hooks, so webrunner can swap out result printers like it did before.
2011-02-13 14:56:34 -05:00
mark_story
8ebbccbd76 Fixing tab/spaces. 2011-02-13 14:56:34 -05:00
mark_story
8c2e0815ec Adding Fixture manager overriding.
Refs #1511
2011-02-13 14:56:34 -05:00
mark_story
0a2822335c Removing a bunch of code not needed any more. 2011-02-13 14:56:34 -05:00
mark_story
f586ed0394 Initial ugly re-factor of where fixtures are done. 2011-02-13 14:56:33 -05:00
mark_story
5a631a6c74 Renaming the runner.
Making the runner extend PHPUnit_TextUi_TestRunner so we can customize the TestSuite classes it uses.
Adding CakeTestSuiteCommand so we can customize the TextUI_Command output.
2011-02-13 14:56:33 -05:00
mark_story
60590de6bc Starting to banish TestManager, and replace it with a more normal PHPUnit test loader. 2011-02-13 14:56:33 -05:00
ADmad
681b9997b0 Renamed Controller::view to Controller::viewClass and Controller::view, View::view can now be used to change the view rendered by default. Parameters of Controller::render() and View::render() changed to eliminate redundancy. Closes #1520 2011-02-13 02:24:39 +05:30
mark
e16d21eaa3 Add displayField and primaryKey to controller bake. Fixes #1192
Signed-off-by: mark_story <mark@mark-story.com>
2011-02-12 11:47:38 -05:00
mark_story
d0c2b9c9d1 Fixing failing test caused by boolean type changes. 2011-02-12 06:21:19 -05:00
mark_story
08509cc6d3 Fixing issue where static variable would be shared inconsistently across multiple instances. Fixes #1504 2011-02-11 22:39:09 -05:00
mark_story
26c5f78a14 Fixing notice error caused when looking for info on tables that don't exist. 2011-02-11 22:37:56 -05:00
mark_story
e0420937a7 Fixing notice error that could occur if csrfTokens ended up being null/not an array. 2011-02-11 22:30:51 -05:00
mark_story
33390070d3 Removing HTTP authentication from SecurityComponent. There are new
Authentication objects to fill this hole now.
2011-02-08 22:09:57 -05:00
mark_story
fbd798da6c Reordering parameters to make it easier to remember the order. 2011-02-06 16:59:47 -05:00
mark_story
47cdaedc94 Fixing $this -> self. 2011-02-06 15:25:36 -05:00
mark_story
e32f419d0a Fixing comments. 2011-02-06 00:01:52 -05:00
mark_story
3629925a40 Refactoring authentication objects so basic and digest authentication can work without cookies. This makes non browser clients able to use Basic and Digest auth.
Updating test cases.
2011-02-05 18:41:00 -05:00
mark_story
7388d900b4 Fixing IIS test cases to match what should actually happen. 2011-02-05 16:12:50 -05:00
mark_story
11d20f80d0 Fixing failing tests imported with the merge. 2011-02-05 15:24:53 -05:00
mark_story
e149c411fb Merge branch '1.3' into merger
Conflicts:
	cake/VERSION.txt
	cake/config/config.php
	cake/console/shells/tasks/template.php
	cake/dispatcher.php
	cake/libs/controller/component.php
	cake/libs/controller/components/email.php
	cake/libs/controller/scaffold.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/view/helpers/cache.php
	cake/libs/view/pages/home.ctp
	cake/tests/cases/dispatcher.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
	cake/tests/fixtures/datatype_fixture.php
2011-02-05 12:20:09 -05:00
mark_story
8d5e68d582 Fixing issue where habtm tables would not have the connection prefix removed when generating schema. Fixes #1180 2011-02-05 11:19:05 -05:00
mark_story
ca22624b2b Tiny tweak to remove a duplicated line. 2011-02-05 10:43:30 -05:00
mark_story
79bbd227e3 Cache::configured() and in_array() are faster than calling Cache::config() 6 times. 2011-02-05 10:30:28 -05:00
mark_story
cf50cbdd9d Fixing issue in FormHelper where CURRENT_TIMESTAMP or other invalid data could cause a notice error. Fixes #1508 2011-02-05 06:43:00 -05:00
mark_story
0a266fa1fc Fixing typo. 2011-02-05 05:54:38 -05:00
mark_story
f58f3763eb Updating tests to account for attribute whitespace change. 2011-02-05 05:52:18 -05:00