function TestSqlBase::__construct

Same name in this branch
  1. 11.x core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::__construct()
Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::__construct()
  2. 9 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::__construct()
  3. 8.9.x core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::__construct()
  4. 8.9.x core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::__construct()
  5. 10 core/modules/migrate/tests/src/Unit/SqlBaseTest.php \Drupal\Tests\migrate\Unit\TestSqlBase::__construct()
  6. 10 core/modules/migrate/tests/src/Kernel/SqlBaseTest.php \Drupal\Tests\migrate\Kernel\TestSqlBase::__construct()

Overrides the constructor so we can create one easily.

Parameters

array $configuration: The plugin instance configuration.

\Drupal\migrate\Plugin\MigrationInterface $migration: (optional) The migration being run.

Overrides SqlBase::__construct

File

core/modules/migrate/tests/src/Kernel/SqlBaseTest.php, line 225

Class

TestSqlBase
A dummy source to help with testing SqlBase.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function __construct(array $configuration = [], ?MigrationInterface $migration = NULL) {
    parent::__construct($configuration, 'sql_base', [
        'requirements_met' => TRUE,
    ], $migration, \Drupal::state());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.