X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flink%2Ftests%2Fsrc%2FFunctional%2FLinkFieldTest.php;fp=web%2Fcore%2Fmodules%2Flink%2Ftests%2Fsrc%2FFunctional%2FLinkFieldTest.php;h=f32bf3c45b8282671688f50b935711dbf9831ce6;hp=c99ad0a931060dd097df970092a13408ec647239;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/link/tests/src/Functional/LinkFieldTest.php b/web/core/modules/link/tests/src/Functional/LinkFieldTest.php index c99ad0a93..f32bf3c45 100644 --- a/web/core/modules/link/tests/src/Functional/LinkFieldTest.php +++ b/web/core/modules/link/tests/src/Functional/LinkFieldTest.php @@ -24,7 +24,12 @@ class LinkFieldTest extends BrowserTestBase { * * @var array */ - public static $modules = ['entity_test', 'link', 'node']; + public static $modules = [ + 'entity_test', + 'link', + 'node', + 'link_test_base_field', + ]; /** * A field to use in this test class. @@ -282,7 +287,7 @@ class LinkFieldTest extends BrowserTestBase { "{$field_name}[0][uri]" => 'http://www.example.com', ]; $this->drupalPostForm(NULL, $edit, t('Save')); - $this->assertText(t('@name field is required.', ['@name' => t('Link text')])); + $this->assertText(t('@title field is required if there is @uri input.', ['@title' => t('Link text'), '@uri' => t('URL')])); // Verify that the link text is not required, if the URL is empty. $edit = [