cakephp/cakephp — pull request #5212 by berrygoudswaard (2014-11-19 21:24:26+00:00)
Title: Fix controller mock

Cake\TestSuite\TestCase::getMockForModel() was using the wrong alias for a model in a plugin.

getMockForModel('PluginName.ModelName') stored the mock in TableRegistry::$_instances with 'PluginName.ModelName' as key.

The correct key is 'ModelName'