Permalink
Browse files

Fix PHPCS and PHP5.3 error.

  • Loading branch information...
markstory committed Oct 14, 2014
1 parent 9b9e886 commit b55a88508f52c5449ddf57a5019c70fac2348a4d
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php
@@ -26,6 +26,7 @@
* Secondary Post stub class.
*/
class SecondaryPost extends Model {
/**
* @var string
*/
@@ -35,6 +36,7 @@ class SecondaryPost extends Model {
* @var string
*/
public $useDbConfig = 'secondary';
}
/**
@@ -437,9 +439,9 @@ public function testGetMockForModelSecondaryDatasource() {
)
), App::RESET);
CakePlugin::load('TestPlugin');
ConnectionManager::create('test_secondary', [
ConnectionManager::create('test_secondary', array(
'datasource' => 'Database/TestLocalDriver'
]);
));
$post = $this->getMockForModel('SecondaryPost', array('save'));
$this->assertEquals('test_secondary', $post->useDbConfig);
ConnectionManager::drop('test_secondary');

0 comments on commit b55a885

Please sign in to comment.