public function PriceTest::setUp in Commerce Feeds 8
Overrides CommerceFeedsKernelTestBase::setUp
File
- tests/
src/ Kernel/ Target/ PriceTest.php, line 24
Class
- PriceTest
- @coversDefaultClass \Drupal\commerce_feeds\Feeds\Target\Price @group commerce_feeds
Namespace
Drupal\Tests\commerce_feeds\Kernel\TargetCode
public function setUp() {
parent::setUp();
// Create feed type.
$this->feedType = $this
->createFeedTypeForCsv([
'sku' => 'sku',
'title' => 'title',
'price' => 'price',
], [
'processor' => 'entity:commerce_product_variation',
'processor_configuration' => [
'authorize' => FALSE,
'values' => [
'type' => 'default',
],
],
'mappings' => [
[
'target' => 'sku',
'map' => [
'value' => 'sku',
],
'unique' => [
'value' => TRUE,
],
],
[
'target' => 'title',
'map' => [
'value' => 'title',
],
],
],
]);
}