cakephp2-php8/lib/Cake/Test/Case
mark_story 9b9e886df6 Fix getMockForModel() using the incorrect datasource.
Because getMockForModel() does not go through the test datasource
injection in ClassRegistry::init() we need to duplicate the basics of
that logic here. Thankfully, we already have a mock so we can do that
datasource switching without reflection. Of course this means there will
be limitations to how/when this will work, but I feel those scenarios
can probably be solved by not using mocks, or by mocking out the
problematic methods. This set of changes makes getMockForModel() work
with secondary datasources, as one would expect it to do, but I'm not
sure it ever did.

Refs #4694
2014-10-12 22:30:22 -04:00
..
Cache Remove x bit on files. 2014-05-13 12:30:14 -04:00
Configure Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
Console Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
Controller Revert "add test to prove requesthandler works correct with Angular wonky accept headers" 2014-10-02 22:12:35 +02:00
Core Mark App::pluginPath as deprecated and don't use it anymore. 2014-06-24 11:52:29 +02:00
Error Fix an infinite recursion caused by missing plugin 2014-07-09 15:55:41 +09:00
Event Fix: Stray [] syntax in php 5.3 codebase 2014-03-07 09:23:06 +07:00
I18n Introduced I18n category constants (#1894) 2014-03-23 17:00:17 +01:00
Log fix failling test on Jenkins after ee1e270 2014-09-13 08:19:40 +02:00
Model Fix Model::isUnique() not working as a validator. 2014-10-09 22:49:17 -04:00
Network Correct a few more misleading assert orders. 2014-09-24 14:34:24 +02:00
Routing Check whether the filter key is a valid class name before assuming that value is class settings 2014-09-15 15:29:30 +10:00
TestSuite Fix getMockForModel() using the incorrect datasource. 2014-10-12 22:30:22 -04:00
Utility Fix Hash::remove() removing data even if the path is not matched 2014-09-23 22:00:49 +02:00
View Cs fixes 2014-09-18 10:50:35 +02:00
AllBehaviorsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllCacheTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllComponentsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllConfigureTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllConsoleTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllControllerTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllCoreTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllDatabaseTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllDbRelatedTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllErrorTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllEventTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllHelpersTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllI18nTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllLogTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllNetworkTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllRoutingTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllTestsTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllTestSuiteTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllUtilityTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AllViewTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
BasicsTest.php Merge pull request #4366 from hmic/ticket#2707 2014-08-24 17:25:30 +02:00