Commit graph

345 commits

Author SHA1 Message Date
mark_story
92b57d81ee Moving common setup and teardown functionality in to CakeTestCase.
Removing repeated setup/teardown logic from test cases.
Switching tests to use setup/teardown instead of startTest/endTest.
2010-09-25 21:36:49 -04:00
mark_story
714d8298c4 Fixing all tasks include.
Removing drop table queries that cause other tests to fail.
2010-09-25 01:25:42 -04:00
mark_story
cd7bc3ff6b Removing disabling of tests from last commit.
Using assertContains instead of assertPattern as its easier to read.
2010-09-25 00:56:46 -04:00
mark_story
d8b39a3818 Changing startTest and endTest to setup and teardown.
Adding an App::build() to reset paths.
2010-09-25 00:47:32 -04:00
mark_story
8e6277c9d1 Updating schema shell test so it doesn't fail in groups.
Updating suites to use new method.
2010-09-25 00:13:37 -04:00
mark_story
6124eb6f7a Moving All Tasks suite. 2010-09-25 00:13:06 -04:00
mark_story
ca167d5da2 Changing schema test to not alter the table and break other tests. 2010-09-24 23:30:03 -04:00
mark_story
3e6b65557b removing old file. 2010-09-24 23:30:02 -04:00
mark_story
4e5ebc5c0f Renaming all bake tasks to all tasks.
Updating all tests.
2010-09-24 23:30:02 -04:00
mark_story
94d738e834 Fixing failing tests and group test situational fails in console tests. Adding console tests to all tests. 2010-09-24 23:30:02 -04:00
mark_story
0bb23095f3 Making schema shell test more robust by deleting files it makes in teardown(). 2010-09-24 23:30:02 -04:00
mark_story
309d08d4ef Mocking out clear() on all the shell tests as it wreaks havoc on the CLI runner. 2010-09-24 23:30:02 -04:00
José Lorenzo Rodríguez
5c3b4cfcc4 Removing all uses of the test_suite connection in the test cases 2010-09-24 23:30:01 -04:00
mark_story
f21161ef46 Merge branch '1.3' into 2.0. Had to fix a number of 1.3 -> 2.0
differences upon merging.

Conflicts:
	app/config/core.php
	cake/console/templates/skel/config/core.php
	cake/libs/cache/file.php
	cake/libs/cake_session.php
	cake/libs/controller/components/email.php
	cake/libs/i18n.php
	cake/libs/view/pages/home.ctp
	cake/tests/cases/libs/cache/memcache.test.php
	cake/tests/cases/libs/model/model_write.test.php
2010-09-24 23:27:22 -04:00
mark_story
e91fa68f8e Making the set() functions use + instead of array_merge() so that numeric indices are properly preserved across multiple method calls. Fixes #1105 2010-09-18 00:13:03 -04:00
mark_story
e4d34b640b Merge branch '2.0-exceptions' into 2.0
Conflicts:
	cake/libs/error.php
	cake/tests/cases/libs/controller/scaffold.test.php
	cake/tests/cases/libs/error.test.php
2010-09-10 20:31:16 -04:00
mark_story
fbd0741a83 Making a test more resilient when additional fixtures are loaded. 2010-09-09 22:54:22 -04:00
mark_story
f677c4ab44 Fixing bake task tests and adding ConsoleErrorHandler to the AllShells suite. 2010-09-07 23:51:39 -04:00
mark_story
f94fcfb749 Updating Api shell test case to account for changes in controller api. 2010-09-07 23:42:18 -04:00
mark_story
6e5e32bef5 Updating AclShell test to use AclComponent correctly. 2010-09-07 23:40:07 -04:00
Mark Story
d88da3d579 Merge branch '1.3' into 2.0
Conflicts:
	cake/libs/configure.php
	cake/libs/model/connection_manager.php
	cake/libs/model/model.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
	cake/tests/cases/libs/view/helpers/text.test.php
2010-09-06 16:53:04 -04:00
Mark Story
5c0fe1b16e Applying patch from 'majna'. Adding plugin to the list of template variables exposed in the controller task. Test added Fixes #1077 2010-09-03 12:33:59 -04:00
mark_story
c48c0d6295 Fixing issue where ViewTask would make empty view files for actions that did not have templates. Test case added. Fixes #1040 2010-08-23 21:49:30 -04:00
mark_story
e0acd2131f Fixing ShellDispatcher tests and making ShellDispatcher/Shell use TaskCollection to loadTasks. 2010-08-10 23:18:41 -04:00
mark_story
9804ed0cb3 Adding tests for loading plugin files. 2010-08-10 23:18:41 -04:00
mark_story
457f24d882 Adding TaskCollection, much like Helper and Component collection TaskCollection will be used to reduce global space pollution. 2010-08-10 23:18:41 -04:00
mark_story
d38857095a Merge branch '1.3' into 2.0
Conflicts:
	cake/libs/model/model.php
	cake/libs/validation.php
	cake/libs/view/helpers/ajax.php
	cake/tests/cases/libs/controller/components/session.test.php
2010-07-24 22:34:42 -04:00
mark_story
b5d7f6447f Applying patch from 'asavoy'. Changing schema shell so that schema files generated for plugins have the classname of PluginSchema instead of AppSchema. Tests updated. Fixes #922 2010-07-23 21:46:06 -04:00
José Lorenzo Rodríguez Urdaneta
478cbd0a60 Adding test case for TestSuiteShell and refactoring to ease this testing 2010-07-13 21:28:21 -04:30
mark_story
10be0e5c6b Updating ModelTaskTest so it runs in a TestSuite. 2010-07-10 00:22:14 -04:00
mark_story
ec84f57fc1 Updating ControllerTaskTest so it runs in a TestSuite context. 2010-07-10 00:19:32 -04:00
mark_story
e64a1873f9 Marking problem test cases, as things that might need to be skipped or fixed. 2010-07-08 23:53:11 -04:00
mark_story
b15948c3bc Updating merged tests from 1.3 2010-07-08 23:44:41 -04:00
mark_story
fbc84cb89b Switching assertTrue() for assertContains, as its more readable. 2010-07-08 23:38:11 -04:00
mark_story
a3bf367929 Adding unique fixtures to ControllerTaskTest and updating the test cases. 2010-07-08 23:25:39 -04:00
mark_story
82ae533f2a Updating FixtureTest to account for removal of ?> in templates. 2010-07-08 22:40:03 -04:00
José Lorenzo Rodríguez Urdaneta
38d8e03363 Fixing some errors on SchemaShellTest 2010-07-07 23:14:12 -04:30
José Lorenzo Rodríguez Urdaneta
da9d1c6b06 Importing controller in bake test to make it pass under the cli runner 2010-07-07 23:07:23 -04:30
José Lorenzo Rodríguez Urdaneta
7b51feb89c Fixing constant declaration as it was not consistent in web runner and cli runner 2010-07-07 22:58:48 -04:30
José Lorenzo Rodríguez Urdaneta
fa8db5787d Fixing test case 2010-07-07 22:29:26 -04:30
mark_story
cd8dff362d Merge branch '2.0-phpunit' into 2.0
Conflicts:
	cake/libs/controller/components/email.php
	cake/tests/cases/libs/cake_test_fixture.test.php
	cake/tests/cases/libs/controller/components/email.test.php
2010-06-28 22:31:35 -04:00
mark_story
929bb5769e Merge branch '1.3' into 2.0
Conflicts:
	app/webroot/index.php
	cake/console/templates/skel/webroot/index.php
	cake/libs/cake_session.php
	cake/libs/controller/components/email.php
	cake/libs/controller/scaffold.php
	cake/libs/model/datasources/dbo/dbo_oracle.php
	cake/libs/model/model_behavior.php
	cake/libs/view/pages/home.ctp
	cake/tests/cases/libs/controller/components/acl.test.php
	cake/tests/cases/libs/file.test.php
2010-06-26 12:29:20 -04:00
mark_story
d8ac21baae Migrating bake group to PHPUnit. 2010-06-22 23:11:58 -04:00
mark_story
9ace0100ab Updating ExtractTaskTest to pass under PHPUnit. 2010-06-20 23:23:56 -04:00
mark_story
aee1c5483b Renaming test case classes to better reflect the filenames. 2010-06-13 10:06:00 -04:00
mark_story
69559958a7 Adding ommitted new line. 2010-06-12 17:43:12 -04:00
mark_story
9cdf11a02a Updating ModelTask test case to PHPUnit. 2010-06-12 17:42:53 -04:00
mark_story
ad8d5fa29b Updating some tests to use onConsecutiveCalls() as its easier to read and maintain. 2010-06-12 16:10:16 -04:00
mark_story
5013ec03f1 Updating ViewTask test case to PHPUnit. 2010-06-12 15:03:00 -04:00
mark_story
aa8d909764 Updating ProjectTask test case to PHPUnit. 2010-06-10 00:59:19 -04:00