mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Fix PHPCS and PHP5.3 error.
This commit is contained in:
parent
9b9e886df6
commit
b55a88508f
1 changed files with 4 additions and 2 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue