public function FeedsMapperPathTest::assertAliasCount in Feeds 8.2
1 call to FeedsMapperPathTest::assertAliasCount()
- FeedsMapperPathTest::testNodeAlias in lib/
Drupal/ feeds/ Tests/ FeedsMapperPathTest.php - Basic test loading a single entry CSV file.
File
- lib/
Drupal/ feeds/ Tests/ FeedsMapperPathTest.php, line 155 - Test case for path alias mapper path.inc.
Class
- FeedsMapperPathTest
- Class for testing Feeds <em>path</em> mapper.
Namespace
Drupal\feeds\TestsCode
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.');
}