mark_story
41db1485aa
Updating test cases to use new objects.
...
Preventing ConsoleOutput and ConsoleInput constructors from being run as it causes too many files open exceptions.
2010-10-13 23:18:20 -04:00
mark_story
73ad3043a2
Fixing more console tests to use new internals.
...
Making TaskCollection pass the stdout, stdin, stderr to Tasks they create. This allows for more flexible dependency injection and makes testing easier.
2010-10-13 23:18:20 -04:00
mark_story
a3023430c8
Updating test cases to use new Shell internals.
...
Cleaning up some mocks.
2010-10-13 23:18:19 -04:00
mark_story
7921ef1282
Fixing Shell tests to use ConsoleInput.
2010-10-13 23:18:19 -04:00
mark_story
76c6decb52
Updating tests for Shell so they pass with the changes in the Shell internals.
2010-10-13 23:18:19 -04:00
mark_story
a55098b00b
Making TaskCollection require a Shell instead of a ShellDispatcher.
...
This will help reduce the coupling between ShellDispatcher and other objects.
Since ShellDispatcher never directly uses or interacts with TaskCollection, it doesn't make much sense for it to have one. Instead shells will either get their own, or be passed one in.
2010-10-13 23:18:19 -04:00
mark_story
02c4e00556
Starting to move command list out to a separate class so ShellDispatcher can stop having stderr/stdout connections.
2010-10-13 23:18:18 -04:00
mark_story
ffbb4e6b45
Integrating ConsoleOutput with ConsoleErrorHandler.
...
Updating test cases to match new output.
2010-10-13 23:18:18 -04:00
mark_story
9b8ce2d7fa
Updating includes for shell + task includes to point at the new file.
2010-10-13 23:18:17 -04:00
mark_story
3ab77017ae
Fixing OpenTest license mentions to use MIT License
...
Fixing PHP versions 4 and 5 to only be PHP5.
2010-10-03 12:31:21 -04:00
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