cakephp2-php8/lib/Cake/TestSuite
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
..
Coverage Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
Fixture Make the error message better for fixture errors 2014-07-15 13:21:48 +01:00
Reporter Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
templates Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
CakeTestCase.php Fix getMockForModel() using the incorrect datasource. 2014-10-12 22:30:22 -04:00
CakeTestLoader.php Fix the test suite package doc block errors. 2014-06-05 00:24:01 -04:00
CakeTestRunner.php Fix the test suite package doc block errors. 2014-06-05 00:24:01 -04:00
CakeTestSuite.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
CakeTestSuiteCommand.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
CakeTestSuiteDispatcher.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
ControllerTestCase.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00