Fix PHPCS and PHP5.3 error.

This commit is contained in:
mark_story 2014-10-13 21:05:33 -04:00
parent 9b9e886df6
commit b55a88508f

View file

@ -26,6 +26,7 @@ App::uses('Model', 'Model');
* Secondary Post stub class. * Secondary Post stub class.
*/ */
class SecondaryPost extends Model { class SecondaryPost extends Model {
/** /**
* @var string * @var string
*/ */
@ -35,6 +36,7 @@ class SecondaryPost extends Model {
* @var string * @var string
*/ */
public $useDbConfig = 'secondary'; public $useDbConfig = 'secondary';
} }
/** /**
@ -437,9 +439,9 @@ class CakeTestCaseTest extends CakeTestCase {
) )
), App::RESET); ), App::RESET);
CakePlugin::load('TestPlugin'); CakePlugin::load('TestPlugin');
ConnectionManager::create('test_secondary', [ ConnectionManager::create('test_secondary', array(
'datasource' => 'Database/TestLocalDriver' 'datasource' => 'Database/TestLocalDriver'
]); ));
$post = $this->getMockForModel('SecondaryPost', array('save')); $post = $this->getMockForModel('SecondaryPost', array('save'));
$this->assertEquals('test_secondary', $post->useDbConfig); $this->assertEquals('test_secondary', $post->useDbConfig);
ConnectionManager::drop('test_secondary'); ConnectionManager::drop('test_secondary');