You are here

protected function CsvTestBase::setUp in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/CsvTestBase.php \Drupal\Tests\commerce_migrate\Kernel\CsvTestBase::setUp()
  2. 3.1.x tests/src/Kernel/CsvTestBase.php \Drupal\Tests\commerce_migrate\Kernel\CsvTestBase::setUp()

Overrides MigrateTestBase::setUp

26 calls to CsvTestBase::setUp()
AttributeValueTest::setUp in modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php
ImageTest::setUp in modules/csv_example/tests/src/Kernel/Migrate/ImageTest.php
ImageTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php
ProductAttributeTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeTest.php
ProductAttributeValueTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeValueTest.php

... See full list

26 methods override CsvTestBase::setUp()
AttributeValueTest::setUp in modules/csv_example/tests/src/Kernel/Migrate/AttributeValueTest.php
ImageTest::setUp in modules/csv_example/tests/src/Kernel/Migrate/ImageTest.php
ImageTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ImageTest.php
ProductAttributeTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeTest.php
ProductAttributeValueTest::setUp in modules/magento/tests/src/Kernel/Migrate/magento2/ProductAttributeValueTest.php

... See full list

File

tests/src/Kernel/CsvTestBase.php, line 62

Class

CsvTestBase
Test base for migrations tests with CSV source file.

Namespace

Drupal\Tests\commerce_migrate\Kernel

Code

protected function setUp() {
  KernelTestBase::setUp();

  // Setup a public file directory for all migration source files.
  $this->fs = $this->container
    ->get('file_system');
  $this
    ->config('system.file')
    ->set('default_scheme', 'public')
    ->save();
  $this
    ->loadFixture($this
    ->getFixtureFilePath());
}