You are here

function ContactSitewideTestCase::getCategories in Drupal 7

Gets a list of all category IDs.

Return value

array A list of the category IDs.

2 calls to ContactSitewideTestCase::getCategories()
ContactSitewideTestCase::deleteCategories in modules/contact/contact.test
Deletes all categories.
ContactSitewideTestCase::testSiteWideContact in modules/contact/contact.test
Tests configuration options and the site-wide contact form.

File

modules/contact/contact.test, line 292
Tests for the Contact module.

Class

ContactSitewideTestCase
Tests the site-wide contact form.

Code

function getCategories() {
  $categories = db_query('SELECT cid FROM {contact}')
    ->fetchCol();
  return $categories;
}