public function FeedsProcessorTaxonomyTermTest::setUp in Feeds 8.2
Set up test.
Overrides FeedsWebTestBase::setUp
File
- lib/
Drupal/ feeds/ Tests/ FeedsProcessorTaxonomyTermTest.php, line 25 - Tests for plugins/FeedsTermProcessor.inc
Class
- FeedsProcessorTaxonomyTermTest
- Test aggregating a feed as data records.
Namespace
Drupal\feeds\TestsCode
public function setUp() {
parent::setUp();
// Create an importer.
$this
->createImporterConfiguration('Term import', 'term_import');
// Set and configure plugins and mappings.
$this
->setPlugin('term_import', 'file');
$this
->setPlugin('term_import', 'csv');
$this
->setPlugin('term_import', 'taxonomy_term');
// Create vocabulary.
entity_create('taxonomy_vocabulary', array(
'name' => 'Addams vocabulary',
'vid' => 'addams',
))
->save();
$this
->setSettings('term_import', 'taxonomy_term', array(
'bundle' => 'addams',
));
// Use standalone form.
$this
->setSettings('term_import', NULL, array(
'content_type' => '',
));
}