3 namespace Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests the variable source plugin.
10 * @covers \Drupal\migrate_drupal\Plugin\migrate\source\Variable
12 * @group migrate_drupal
14 class VariableTest extends MigrateSqlSourceTestBase {
19 public static $modules = ['migrate_drupal'];
24 public function providerSource() {
28 $tests[0]['source_data']['variable'] = [
29 ['name' => 'foo', 'value' => 'i:1;'],
30 ['name' => 'bar', 'value' => 'b:0;'],
33 // The expected results.
34 $tests[0]['expected_data'] = [
42 // The expected count.
43 $tests[0]['expected_count'] = NULL;
45 // The source plugin configuration.
46 $tests[0]['configuration']['variables'] = [