public function FeedsEntityProcessorPropertyTest::setUp in Feeds entity processor 7
Set up test.
File
- tests/
src/ FeedsEntityProcessorPropertyTest.test, line 41  - Contains FeedsEntityProcessorPropertyTest.
 
Class
- FeedsEntityProcessorPropertyTest
 - Tests importing entities with properties of various data types.
 
Code
public function setUp() {
  parent::setUp(array(
    'feeds_entity_processor',
    'feeds_entity_processor_test',
  ));
  // Create an importer configuration.
  $this
    ->createImporterConfiguration('Syndication', 'syndication');
  $this
    ->setPlugin('syndication', 'FeedsCSVParser');
  $this
    ->setPlugin('syndication', 'FeedsEntityProcessorFeeds_entity_processor_test');
  // Create bundle entity.
  $this->bundle = drupal_strtolower($this
    ->randomName());
  entity_create('feeds_entity_processor_test_type', array(
    'id' => drupal_strtolower($this
      ->randomName()),
    'name' => $this->bundle,
  ))
    ->save();
  // Create a node.
  $this->node = $this
    ->drupalCreateNode();
}