function AggregatorTestBase::getCategories

Pull categories from aggregator_category table.

1 call to AggregatorTestBase::getCategories()
CategorizeFeedTest::testCategorizeFeed in drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/CategorizeFeedTest.php
Create a feed and make sure you can add more than one category to it.

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Tests/AggregatorTestBase.php, line 180
Definition of Drupal\aggregator\Tests\AggregatorTestBase.

Class

AggregatorTestBase
Defines a base class for testing aggregator.module.

Namespace

Drupal\aggregator\Tests

Code

function getCategories() {
  $categories = array();
  $result = db_query('SELECT * FROM {aggregator_category}');
  foreach ($result as $category) {
    $categories[$category->cid] = $category;
  }
  return $categories;
}