protected function FeedsParaMapperTestBase::createFeedType in Feeds Paragraphs 8
1 call to FeedsParaMapperTestBase::createFeedType()
- FeedsParaMapperTestBase::setUp in tests/src/Functional/FeedsParaMapperTestBase.php
File
- tests/src/Functional/FeedsParaMapperTestBase.php, line 181
Class
- FeedsParaMapperTestBase
- Test basic functionality via BrowserTestBase.
@todo: tests are failing because some dependencies modules use PrivateTempStore, see https://www.drupal.org/project/feeds/issues/3012342
@todo: for now we applied the patch in the issue, waiting for module…
Namespace
Drupal\Tests\feeds_para_mapper\Functional
Code
protected function createFeedType($contentType, $feedType) {
$this
->drupalGet('admin/structure/feeds/add');
$edit = array(
'id' => $feedType,
'label' => $feedType,
'description' => $feedType,
'fetcher' => 'upload',
'parser' => 'csv',
'processor' => 'entity:node',
'processor_wrapper[advanced][values][type]' => $contentType,
);
$this
->drupalPostForm(null, $edit, t("Save and add mappings"));
}