BoxTest.php in Drupal 10
File
core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d6/BoxTest.php
View source
<?php
namespace Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d6;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
class BoxTest extends MigrateSqlSourceTestBase {
protected static $modules = [
'block_content',
'migrate_drupal',
];
public function providerSource() {
$tests = [];
$tests[0]['source_data']['boxes'] = [
[
'bid' => 1,
'body' => '<p>I made some custom content.</p>',
'info' => 'Static Block',
'format' => 1,
],
[
'bid' => 2,
'body' => '<p>I made some more custom content.</p>',
'info' => 'Test Content',
'format' => 1,
],
];
$tests[0]['expected_data'] = $tests[0]['source_data']['boxes'];
return $tests;
}
}
Classes
Name |
Description |
BoxTest |
Tests D6 block boxes source plugin. |