public function FeedsMapperTaxonomyTestCase::testMissingVocabulary in Feeds 7.2
Tests that there are no errors when trying to map to an invalid vocabulary.
File
- tests/
feeds_mapper_taxonomy.test, line 586 - Contains FeedsMapperTaxonomyTestCase.
Class
- FeedsMapperTaxonomyTestCase
- Test case for taxonomy mapper mappers/taxonomy.inc.
Code
public function testMissingVocabulary() {
$this
->addMappings('syndication', array(
5 => array(
'source' => 'tags',
'target' => 'field_tags',
'term_search' => 0,
'autocreate' => TRUE,
),
));
// Create an invalid configuration.
db_delete('taxonomy_vocabulary')
->execute();
$this
->createFeedNode('syndication', NULL, 'Syndication');
$this
->assertText('Created 10 nodes.');
}