cakephp2-php8/lib/Cake/Test/Case/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
..
Fixture Removed leading underscores from ReflectionProperty variables in test case 2013-12-07 12:10:03 -05:00
CakeTestCaseTest.php Fix getMockForModel() using the incorrect datasource. 2014-10-12 22:30:22 -04:00
CakeTestFixtureTest.php Correct doc blocks according to cs guidelines. 2014-07-03 15:36:42 +02:00
CakeTestSuiteTest.php Improved the DocBlocks and other code cleanup 2013-05-31 00:11:19 +02:00
ControllerTestCaseTest.php more missing doc block tags added 2014-04-02 03:02:37 +02:00
HtmlCoverageReportTest.php More coding standard corrections. 2014-04-29 14:19:33 +02:00