Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed the simulate flag that is not used.

  • Loading branch information...
commit 3e4cd4fdbbb812c3b2317f36cc7543a305ba3413 1 parent 375f86d
@jrbasso jrbasso authored
Showing with 2 additions and 28 deletions.
  1. +2 −28 lib/Cake/Test/Case/Model/Datasource/Database/MssqlTest.php
View
30 lib/Cake/Test/Case/Model/Datasource/Database/MssqlTest.php
@@ -36,14 +36,6 @@ class MssqlTestDb extends Mssql {
public $simulated = array();
/**
- * simulate property
- *
- * @var array
- * @access public
- */
- public $simulate = false;
-
-/**
* execute results stack
*
* @var array
@@ -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);
}
/**
@@ -291,20 +279,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
*
*/
Please sign in to comment.
Something went wrong with that request. Please try again.