public function BlockSettingsTest::providerTestTransform in Drupal 9
Provides data for testTransform.
File
- core/
modules/ block/ tests/ src/ Unit/ Plugin/ migrate/ process/ BlockSettingsTest.php, line 43
Class
- BlockSettingsTest
- @coversDefaultClass \Drupal\block\Plugin\migrate\process\BlockSettings @group block
Namespace
Drupal\Tests\block\Unit\Plugin\migrate\processCode
public function providerTestTransform() {
return [
'title set' => [
[
'custom',
0,
'foo',
'title',
],
[
'label' => 'title',
'label_display' => 'visible',
],
],
'title empty' => [
[
'custom',
0,
'foo',
'',
],
[
'label' => '',
'label_display' => '0',
],
],
'title <none>' => [
[
'custom',
0,
'foo',
'<none>',
],
[
'label' => '<none>',
'label_display' => '0',
],
],
];
}