Skip to content

Commit

Permalink
Removing test ins porstgres that wasn't actually testing a thing, and…
Browse files Browse the repository at this point in the history
… making another postgres test pass
  • Loading branch information
lorenzo committed Oct 1, 2011
1 parent a94b049 commit 5d19b6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
19 changes: 0 additions & 19 deletions lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php
Expand Up @@ -429,25 +429,6 @@ public function testLastInsertIdMultipleInsert() {
$this->assertEqual($db1->lastInsertId($table), 6);
}

/**
* 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.
Expand Down
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -2897,6 +2897,7 @@ public function testSaveAllAtomic() {
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(
Expand Down

0 comments on commit 5d19b6d

Please sign in to comment.