diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php index 5282270..7c85507 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php @@ -25,7 +25,7 @@ class MediaDisplayTest extends MediaJavascriptTestBase { protected function setUp() { parent::setUp(); - // Instal the optional configs from the standard profile. + // Install the optional configs from the standard profile. $extension_path = drupal_get_path('profile', 'standard'); $optional_install_path = $extension_path . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY; $storage = new FileStorage($optional_install_path); @@ -81,9 +81,9 @@ public function testMediaDisplay() { $image_media_id = reset($image_media_id); // Here we expect to see only the image, nothing else. - // 1) Assert only one element in the content region. + // Assert only one element in the content region. $this->assertEquals(1, count($page->findAll('css', '.media--type-image > div'))); - // 2) Assert the image is present inside the media element, with "medium" + // Assert the image is present inside the media element, with "medium" // image style. $media_item = $assert_session->elementExists('css', '.media--type-image > div'); $assert_session->elementExists('css', 'img.image-style-medium', $media_item); @@ -99,9 +99,9 @@ public function testMediaDisplay() { $page->pressButton('Save'); // Here we expect to see only the linked filename. - // 1) Assert only one element in the content region. + // Assert only one element in the content region. $this->assertEquals(1, count($page->findAll('css', 'article.media--type-file > div'))); - // 2) Assert the file link is present, and its text matches the filename. + // Assert the file link is present, and its text matches the filename. $assert_session->elementExists('css', 'article.media--type-file .field--name-field-media-file a'); $link = $page->find('css', 'article.media--type-file .field--name-field-media-file a'); $this->assertEquals($test_filename, $link->getText());