function BlockCustomTest::providerSource
Same name in other branches
- 8.9.x core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php \Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7\BlockCustomTest::providerSource()
- 10 core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php \Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7\BlockCustomTest::providerSource()
- 11.x core/modules/block_content/tests/src/Kernel/Plugin/migrate/source/d7/BlockCustomTest.php \Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7\BlockCustomTest::providerSource()
Overrides MigrateSourceTestBase::providerSource
File
-
core/
modules/ block_content/ tests/ src/ Kernel/ Plugin/ migrate/ source/ d7/ BlockCustomTest.php, line 23
Class
- BlockCustomTest
- Tests d7_block_custom source plugin.
Namespace
Drupal\Tests\block_content\Kernel\Plugin\migrate\source\d7Code
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',
],
];
// The expected results are identical to the source data.
$tests[0]['expected_data'] = $tests[0]['source_data']['block_custom'];
return $tests;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.