3 namespace Drupal\Tests\block\Kernel\Plugin\migrate\source;
5 use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
8 * Tests block source plugin.
10 * @covers \Drupal\block\Plugin\migrate\source\Block
13 class BlockTest extends MigrateSqlSourceTestBase {
18 public static $modules = ['block', 'migrate_drupal'];
23 public function providerSource() {
27 $tests[0]['source_data']['blocks'] = [
38 'title' => 'Test Title 01',
51 'title' => 'Test Title 02',
55 $tests[0]['source_data']['blocks_roles'] = [
72 $tests[0]['source_data']['role'] = [
75 'name' => 'authenticated user',
78 $tests[0]['source_data']['system'] = [
80 'filename' => 'modules/system/system.module',
87 'schema_version' => '6055',
93 // The expected results.
94 $tests[0]['expected_data'] = [
105 'title' => 'Test Title 01',
113 'theme' => 'garland',
118 'pages' => '<front>',
119 'title' => 'Test Title 02',