mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removed the simulate flag that is not used.
This commit is contained in:
parent
375f86d2a6
commit
3e4cd4fdbb
1 changed files with 2 additions and 28 deletions
|
@ -35,14 +35,6 @@ class MssqlTestDb extends Mssql {
|
|||
*/
|
||||
public $simulated = array();
|
||||
|
||||
/**
|
||||
* simulate property
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
*/
|
||||
public $simulate = false;
|
||||
|
||||
/**
|
||||
* execute results stack
|
||||
*
|
||||
|
@ -59,12 +51,8 @@ class MssqlTestDb extends Mssql {
|
|||
* @return void
|
||||
*/
|
||||
function _execute($sql) {
|
||||
if ($this->simulate) {
|
||||
$this->simulated[] = $sql;
|
||||
return empty($this->executeResultsStack) ? null : array_pop($this->executeResultsStack);
|
||||
} else {
|
||||
return parent::_execute($sql);
|
||||
}
|
||||
$this->simulated[] = $sql;
|
||||
return empty($this->executeResultsStack) ? null : array_pop($this->executeResultsStack);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -290,20 +278,6 @@ class MssqlTest extends CakeTestCase {
|
|||
*/
|
||||
public $fixtures = array('core.category');
|
||||
|
||||
/**
|
||||
* Make sure all fixtures tables are being created
|
||||
*
|
||||
*/
|
||||
public function startTest($method) {
|
||||
$this->db->simulate = true;
|
||||
}
|
||||
/**
|
||||
* Make sure all fixtures tables are being dropped
|
||||
*
|
||||
*/
|
||||
public function endTest($method) {
|
||||
$this->db->simulate = false;
|
||||
}
|
||||
/**
|
||||
* Sets up a Dbo class instance for testing
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue