VariableMultiRowTestBase.php in Zircon Profile 8
File
core/modules/migrate_drupal/tests/src/Unit/source/VariableMultiRowTestBase.php
View source
<?php
namespace Drupal\Tests\migrate_drupal\Unit\source;
use Drupal\Tests\migrate\Unit\MigrateSqlSourceTestCase;
abstract class VariableMultiRowTestBase extends MigrateSqlSourceTestCase {
const PLUGIN_CLASS = 'Drupal\\migrate_drupal\\Plugin\\migrate\\source\\VariableMultiRow';
protected $migrationConfiguration = array(
'id' => 'test',
'source' => array(
'plugin' => 'd6_variable_multirow',
'variables' => array(
'foo',
'bar',
),
),
);
protected $expectedResults = array(
array(
'name' => 'foo',
'value' => 1,
),
array(
'name' => 'bar',
'value' => FALSE,
),
);
protected $databaseContents = array(
'variable' => array(
array(
'name' => 'foo',
'value' => 'i:1;',
),
array(
'name' => 'bar',
'value' => 'b:0;',
),
),
);
}