constant MediaMigrationFilterFormatTest::FIELD_TABLES_WITH_IMAGE_TAG in Media Migration 8
Test database tables with a text field containing an image tag.
@const array[]
File
- tests/
src/ Kernel/ Migrate/ MediaMigrationFilterFormatTest.php, line 697
Class
- MediaMigrationFilterFormatTest
- Tests the Media Migration altered filter format migration.
Namespace
Drupal\Tests\media_migration\Kernel\MigrateCode
const FIELD_TABLES_WITH_IMAGE_TAG = [
'field_config' => [
[
'id' => 1,
'field_name' => 'body_img',
'type' => 'text_with_summary',
'module' => 'text',
'active' => 1,
'storage_active' => 1,
'translatable' => 0,
'deleted' => 0,
],
],
'field_config_instance' => [
[
'id' => 1,
'field_id' => 1,
'field_name' => 'body_img',
'entity_type' => 'node',
'bundle' => 'article',
'deleted' => 0,
],
],
'field_revision_body_img' => [
[
'entity_type' => 'node',
'bundle' => 'article',
'deleted' => 0,
'entity_id' => 1,
'revision_id' => 1,
'language' => 'und',
'delta' => 0,
'body_img_value' => '<p>Foo bar.</p><p><img src="/sites/default/files/field/image/yellow.jpg" alt="A yellow image" title="This is a yellow image" /></p>',
'body_img_summary' => '',
'body_img_format' => 'filtered_html',
],
],
];