3 namespace Drupal\Tests\migrate_drupal\Unit\source;
5 use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
8 * Base class for variable multirow source unit tests.
10 abstract class VariableMultiRowTestBase extends MigrateSqlSourceTestCase {
12 // The plugin system is not working during unit testing so the source plugin
13 // class needs to be manually specified.
14 const PLUGIN_CLASS = 'Drupal\migrate_drupal\Plugin\migrate\source\VariableMultiRow';
16 // The fake Migration configuration entity.
17 protected $migrationConfiguration = [
20 'plugin' => 'd6_variable_multirow',
28 protected $expectedResults = [
29 ['name' => 'foo', 'value' => 1],
30 ['name' => 'bar', 'value' => FALSE],
33 protected $databaseContents = [
35 ['name' => 'foo', 'value' => 'i:1;'],
36 ['name' => 'bar', 'value' => 'b:0;'],