You are here

public function FeedsMapperPathTestCase::assertAliasCount in Feeds 7.2

2 calls to FeedsMapperPathTestCase::assertAliasCount()
FeedsMapperPathTestCase::testNodeAlias in tests/feeds_mapper_path.test
Basic test loading a single entry CSV file.
FeedsMapperPathTestCase::testTermAlias in tests/feeds_mapper_path.test
Test support for term aliases.

File

tests/feeds_mapper_path.test, line 151
Contains FeedsMapperPathTestCase.

Class

FeedsMapperPathTestCase
Test case for path alias mapper path.inc.

Code

public function assertAliasCount($aliases) {
  $in_db = db_select('url_alias', 'a')
    ->fields('a')
    ->condition('a.alias', $aliases)
    ->execute()
    ->fetchAll();
  $this
    ->assertEqual(count($in_db), count($aliases), 'Correct number of aliases in db.');
}