diff --git a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php index 2f463f775c..6e1989657c 100644 --- a/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php +++ b/core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php @@ -201,7 +201,7 @@ public function testErrorMessages() { $assert_session = $this->assertSession(); $this->assertEmpty($assert_session->waitForElementVisible('css', 'img[src*="image-test.png"]', 1000)); $assert_session->elementNotExists('css', 'figure'); - $this->assertNotEmpty($assert_session->waitforText('An error occurred while trying to preview the media. Please save your work and reload this page.')); + $this->assertNotEmpty($assert_session->waitForText('An error occurred while trying to preview the media. Please save your work and reload this page.')); // Now assert that the error doesn't appear when the override to force an // error is removed. $this->container->get('state')->set('test_media_filter_controller_throw_error', FALSE); diff --git a/core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php b/core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php index 62468b1e9f..8577c56949 100644 --- a/core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php +++ b/core/modules/media/tests/src/Kernel/MediaEmbedFilterTest.php @@ -292,7 +292,6 @@ public function testMissingEntityIndicator($uuid, array $filter_ids, array $addi $this->assertCount(1, $this->cssSelect('div[data-media-embed-test-view-mode="foobar"]')); $this->embeddedEntity->delete(); } - $result = $this->processText($content, 'en', $filter_ids); $this->setRawContent($result->getProcessedText()); $this->assertCount(0, $this->cssSelect('div[data-media-embed-test-view-mode="foobar"]'));