public function BlockTest::blockDataProvider in Acquia Content Hub 8.2
Data provider for testBlock.
Return value
array Data provider set.
File
- tests/
src/ Kernel/ BlockTest.php, line 76
Class
- BlockTest
- Tests exporting and import blocks.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
public function blockDataProvider() {
return [
// Standard text block.
[
0,
[
[
'type' => 'block_content',
'uuid' => '6bf9ea86-92ea-498e-bf5f-4c137a767af3',
],
],
'block_content',
'6bf9ea86-92ea-498e-bf5f-4c137a767af3',
],
// Block entity with a custom field.
[
1,
[
[
'type' => 'block_content',
'uuid' => '94b4093e-fb02-4d53-8ecc-031f85fd1db2',
],
],
'block_content',
'94b4093e-fb02-4d53-8ecc-031f85fd1db2',
],
// Multilingual Block.
[
2,
[
[
'type' => 'block_content',
'uuid' => '0e74a49f-eb49-43ef-9d7a-50c6f500ec87',
],
],
'block_content',
'0e74a49f-eb49-43ef-9d7a-50c6f500ec87',
],
];
}