You are here

public function FeedsMapperPathPathautoTestCase::assertAliasCount in Feeds 7.2

1 call to FeedsMapperPathPathautoTestCase::assertAliasCount()
FeedsMapperPathPathautoTestCase::test in tests/feeds_mapper_path.test
Basic for allowing pathauto to override the alias.

File

tests/feeds_mapper_path.test, line 246
Contains FeedsMapperPathTestCase.

Class

FeedsMapperPathPathautoTestCase
Class for testing Feeds <em>path</em> mapper with pathauto.module.

Code

public function assertAliasCount($aliases) {
  $in_db = db_query("SELECT * FROM {url_alias} WHERE alias IN (:aliases)", array(
    ':aliases' => $aliases,
  ))
    ->fetchAll();
  $this
    ->assertEqual(count($in_db), count($aliases), 'Correct number of aliases in db.');
}