diff --git a/modules/aggregator/aggregator.test b/modules/aggregator/aggregator.test index e8e4f0875730d323600ed26a4a387acf33666b40..9b47a29f067017bfeec3585b0649a6594f9f0e2c 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.')); } /**