Skip to content
Snippets Groups Projects
Commit a5515d84 authored by Jess's avatar Jess Committed by Stefanos Petrakis
Browse files

Issue #3099878 by Martijn de Wit, lauriii, mel-miller, _utsavsharma,...

Issue #3099878 by Martijn de Wit, lauriii, mel-miller, _utsavsharma, eric.chenchao, phenaproxima, seanB, xjm, Sivaji_Ganesh_Jojodae, idebr, ckaotik, morganlyndel: Media Library: Default value for data-align attribute should not be center
parent cd9b2117
No related branches found
No related tags found
1 merge request!2901Issue #3130107: Extend unit test coverage for LanguageNegotiationContentEntity
This commit is part of merge request !2901. Comments created here will be created in the context of that merge request.
......@@ -205,11 +205,12 @@ public function testButton() {
$expected_attributes = [
'data-entity-type' => 'media',
'data-entity-uuid' => $this->media->uuid(),
'data-align' => 'center',
];
foreach ($expected_attributes as $name => $expected) {
$this->assertSame($expected, $drupal_media->getAttribute($name));
}
// Ensure that by default, data-align attribute is not set.
$this->assertFalse($drupal_media->hasAttribute('data-align'));
}
/**
......
......@@ -68,7 +68,6 @@ public function getSelectionResponse(MediaLibraryState $state, array $selected_i
'attributes' => [
'data-entity-type' => 'media',
'data-entity-uuid' => $selected_media->uuid(),
'data-align' => 'center',
],
];
$response->addCommand(new EditorDialogSave($values));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment