diff --git a/core/modules/link/src/Tests/LinkFieldUiHelptextTest.php b/core/modules/link/src/Tests/LinkFieldUiHelpTextTest.php similarity index 73% rename from core/modules/link/src/Tests/LinkFieldUiHelptextTest.php rename to core/modules/link/src/Tests/LinkFieldUiHelpTextTest.php index 3ea6d10..1c0f418 100644 --- a/core/modules/link/src/Tests/LinkFieldUiHelptextTest.php +++ b/core/modules/link/src/Tests/LinkFieldUiHelpTextTest.php @@ -2,7 +2,7 @@ /** * @file - * Contains Drupal\link\Tests\LinkFieldUiHelptextTest. + * Contains Drupal\link\Tests\LinkFieldUiHelpTextTest. */ namespace Drupal\link\Tests; @@ -13,11 +13,11 @@ use Drupal\simpletest\WebTestBase; /** - * Tests link field UI helptexts display. + * Tests link field UI help texts are displayed. * * @group link */ -class LinkFieldUiHelptextTest extends WebTestBase { +class LinkFieldUiHelpTextTest extends WebTestBase { use FieldUiTestTrait; @@ -26,7 +26,12 @@ class LinkFieldUiHelptextTest extends WebTestBase { * * @var array */ - public static $modules = ['node', 'link', 'field_ui', 'block']; + public static $modules = [ + 'node', + 'link', + 'field_ui', + 'block', + ]; /** * {@inheritdoc} @@ -34,20 +39,24 @@ class LinkFieldUiHelptextTest extends WebTestBase { protected function setUp() { parent::setUp(); - $this->drupalLogin($this->drupalCreateUser(['administer content types', 'administer node fields', 'administer node display'])); + $this->drupalLogin($this->drupalCreateUser([ + 'administer content types', + 'administer node fields', + 'administer node display', + ])); $this->drupalPlaceBlock('system_breadcrumb_block'); } /** - * Tests internal and external both allowed help text display. + * Tests help text displays when link allows both internal and external links. */ - function testFieldUiHelptextBoth() { + function testFieldUiHelpTextBoth() { // Add a content type. $type = $this->drupalCreateContentType(); $type_path = 'admin/structure/types/manage/' . $type->id(); $add_path = 'node/add/' . $type->id(); - // Add a link field to the newly-created type. Defaults to allowing both + // Add a link field to the newly-created type. It defaults to allowing both // internal and external links. $label = $this->randomMachineName(); $field_name = Unicode::strtolower($label); @@ -59,9 +68,9 @@ function testFieldUiHelptextBoth() { } /** - * Tests external only allowed help text display. + * Tests help text displays when link allows only external links. */ - function testFieldUiHelptextExternalOnly() { + function testFieldUiHelpTextExternalOnly() { // Add a content type. $type = $this->drupalCreateContentType(); $type_path = 'admin/structure/types/manage/' . $type->id();