Skip to content
Permalink
Browse files

test modified getMockForModelSecondaryDatasource

  • Loading branch information...
hgsgtk committed Mar 10, 2018
1 parent 722a2b3 commit 0e4a1d76ab8cc33b2c5f58bd60fa27587e5fbbd2
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php
@@ -445,7 +445,8 @@ public function testGetMockForModelSecondaryDatasource() {
), 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);

0 comments on commit 0e4a1d7

Please sign in to comment.
You can’t perform that action at this time.