BlockCustomTest.php in Drupal 10
File
core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php
View source
<?php
namespace Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
class BlockCustomTest extends MigrateSqlSourceTestBase {
protected static $modules = [
'block_content',
'migrate_drupal',
];
public function providerSource() {
$tests = [];
$tests[0]['source_data']['block_custom'] = [
[
'bid' => '1',
'body' => "I don't feel creative enough to write anything clever here.",
'info' => 'Meh',
'format' => 'filtered_html',
],
];
$tests[0]['expected_data'] = $tests[0]['source_data']['block_custom'];
return $tests;
}
}