test modified getMockForModelSecondaryDatasource

This commit is contained in:
Kazuki Higashiguchi 2018-03-10 12:59:10 +09:00
parent 722a2b3286
commit 0e4a1d76ab

View file

@ -445,7 +445,8 @@ class CakeTestCaseTest extends CakeTestCase {
), App::RESET);
CakePlugin::load('TestPlugin');
ConnectionManager::create('test_secondary', array(
'datasource' => 'Database/TestLocalDriver'
'datasource' => 'Database/TestLocalDriver',
'prefix' => ''
));
$post = $this->getMockForModel('SecondaryPost', array('save'));
$this->assertEquals('test_secondary', $post->useDbConfig);