summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-04 11:11:59 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-04 11:11:59 +0000
commit36bcedc4866d53fb53dbf6abc973a2708d9028f8 (patch)
tree8219f4a6aa515b5edd5930f6334b3fba9f59f3f7 /modules
parenteab8a13bcb503a0b434b7afa66c97964fceb3f63 (diff)
downloadbrdo-36bcedc4866d53fb53dbf6abc973a2708d9028f8.tar.gz
brdo-36bcedc4866d53fb53dbf6abc973a2708d9028f8.tar.bz2
- Patch #342493 by mayor: make aggregator.test work on PostgreSQL.
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator/aggregator.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test
index e8e4f0875..9b47a29f0 100644
--- a/modules/aggregator/aggregator.test
+++ b/modules/aggregator/aggregator.test
@@ -477,9 +477,8 @@ class ImportOPMLTestCase extends AggregatorTestCase {
db_delete('aggregator_category')->execute();
$category = $this->randomName(10, self::$prefix);
- db_insert('aggregator_category')
+ $cid = db_insert('aggregator_category')
->fields(array(
- 'cid' => 1,
'title' => $category,
'description' => '',
))
@@ -490,7 +489,7 @@ class ImportOPMLTestCase extends AggregatorTestCase {
$this->assertFieldByName('files[upload]', '', t('Looking for file upload field.'));
$this->assertFieldByName('remote', '', t('Looking for remote URL field.'));
$this->assertFieldByName('refresh', '', t('Looking for refresh field.'));
- $this->assertFieldByName('category[1]', '1', t('Looking for category field.'));
+ $this->assertFieldByName("category[$cid]", $cid, t('Looking for category field.'));
}
/**