diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php index acad40c..d56e49b 100644 --- a/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -272,7 +272,7 @@ function testLinkTitle() { $this->assertRaw('placeholder="http://example.com"'); if ($title_setting === DRUPAL_DISABLED) { - $this->assertNoFieldByName("{$field_name}[0][title]", '', 'Link text field not found.'); + $this->assertSession()->fieldNotExists("{$field_name}[0][title]"); $this->assertNoRaw('placeholder="Enter the text for this link"'); } else {