mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing cake_test_fixture and dbo_mssql tests. Refs #6135.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8159 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9f15226e46
commit
48386b791f
2 changed files with 3 additions and 30 deletions
|
@ -51,8 +51,8 @@ class CakeTestFixtureTestFixture extends CakeTestFixture {
|
|||
*/
|
||||
var $fields = array(
|
||||
'id' => array('type' => 'integer', 'key' => 'primary'),
|
||||
'name' => array('type' => 'text', 'length' => '255'),
|
||||
'created' => array('type' => 'datetime'),
|
||||
'name' => array('type' => 'string', 'length' => '255'),
|
||||
'created' => array('type' => 'datetime')
|
||||
);
|
||||
/**
|
||||
* Records property
|
||||
|
|
|
@ -36,32 +36,6 @@ require_once LIBS.'model'.DS.'datasources'.DS.'dbo'.DS.'dbo_mssql.php';
|
|||
* @subpackage cake.tests.cases.libs.model.datasources.dbo
|
||||
*/
|
||||
class DboMssqlTestDb extends DboMssql {
|
||||
/**
|
||||
* Contructor
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function __construct() {
|
||||
}
|
||||
/**
|
||||
* connect method
|
||||
*
|
||||
* @return boolean
|
||||
* @access public
|
||||
*/
|
||||
function connect() {
|
||||
$this->connected = true;
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* lastError method
|
||||
*
|
||||
* @return void
|
||||
* @access public
|
||||
*/
|
||||
function lastError() {
|
||||
}
|
||||
/**
|
||||
* simulated property
|
||||
*
|
||||
|
@ -346,10 +320,9 @@ class DboMssqlTest extends CakeTestCase {
|
|||
* @access public
|
||||
*/
|
||||
function testUpdateAllSyntax() {
|
||||
$model = ClassRegistry::init('MssqlTestModel');
|
||||
$fields = array('MssqlTestModel.client_id' => '[MssqlTestModel].[client_id] + 1');
|
||||
$conditions = array('MssqlTestModel.updated <' => date('2009-01-01 00:00:00'));
|
||||
$this->db->update($model, $fields, null, $conditions);
|
||||
$this->db->update($this->model, $fields, null, $conditions);
|
||||
|
||||
$result = $this->db->getLastQuery();
|
||||
$this->assertNoPattern('/MssqlTestModel/', $result);
|
||||
|
|
Loading…
Reference in a new issue