Permalink
Browse files

Updating SQLServer test to pass when the app has a model.

  • Loading branch information...
markstory committed Jun 22, 2011
1 parent 3bc6195 commit 1df0801c331b26cf2d4792c848847dbbb3237722
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/Cake/Test/Case/Model/Datasource/Database/SqlserverTest.php
@@ -18,8 +18,11 @@
*/
App::uses('Model', 'Model');
+App::uses('AppModel', 'Model');
App::uses('Sqlserver', 'Model/Datasource/Database');
+require_once dirname(dirname(dirname(__FILE__))) . DS . 'models.php';
+
/**
* SqlserverTestDb class
*
@@ -246,7 +249,7 @@ class SqlserverTest extends CakeTestCase {
*
* @var array
*/
- public $fixtures = array('core.category', 'core.post');
+ public $fixtures = array('core.category', 'core.author', 'core.post');
/**
* Sets up a Dbo class instance for testing
@@ -399,7 +402,7 @@ public function testDescribe() {
'Default' => '',
'Field' => 'body',
'Key' => 0,
- 'Length' => -1,
+ 'Length' => '-1',
'Null' => 'YES',
'Type' => 'nvarchar'
),
@@ -598,7 +601,7 @@ public function testInsertMulti() {
* @return void
*/
public function testLimitOffsetHack() {
- $this->loadFixtures('Post');
+ $this->loadFixtures('Author', 'Post');
$query = array(
'limit' => 1,
'page' => 1,

0 comments on commit 1df0801

Please sign in to comment.