Browse Source

Removing test ins porstgres that wasn't actually testing a thing, and making another postgres test pass

Jose Lorenzo Rodriguez 14 years ago
parent
commit
5d19b6ded9

+ 0 - 19
lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php

@@ -430,25 +430,6 @@ class PostgresTest extends CakeTestCase {
 	}
 
 /**
- * Tests that table lists and descriptions are scoped to the proper Postgres schema
- *
- * @return void
- */
-	public function testSchemaScoping() {
-		$db1 = ConnectionManager::getDataSource('test');
-		$db1->cacheSources = false;
-		$db1->query('CREATE SCHEMA _scope_test');
-
-		$db2 = ConnectionManager::create(
-			'test_2',
-			array_merge($db1->config, array('driver' => 'postgres', 'schema' => '_scope_test'))
-		);
-		$db2->cacheSources = false;
-
-		$db2->query('DROP SCHEMA _scope_test');
-	}
-
-/**
  * Tests that column types without default lengths in $columns do not have length values
  * applied when generating schemas.
  *

+ 1 - 0
lib/Cake/Test/Case/Model/ModelWriteTest.php

@@ -2897,6 +2897,7 @@ class ModelWriteTest extends BaseModelTest {
 	public function testSaveAllHasMany() {
 		$this->loadFixtures('Article', 'Comment');
 		$TestModel = new Article();
+		$TestModel->order = array('Article.created' => 'ASC');
 		$TestModel->belongsTo = $TestModel->hasAndBelongsToMany = array();
 
 		$result = $TestModel->saveAll(array(