| LinkFormatterTest |
class |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
Tests the Field Formatter for the link field type. |
| LinkFormatterTest.php |
file |
core/modules/link/tests/src/Unit/LinkFormatterTest.php |
|
| LinkFormatterTest.php |
file |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
|
| LinkFormatterTest::$bundle |
property |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
The bundle used in this test. |
| LinkFormatterTest::$entity |
property |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
The entity to be tested. |
| LinkFormatterTest::$entityType |
property |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
The entity type used in this test. |
| LinkFormatterTest::$fieldName |
property |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
The name of the field used in this test. |
| LinkFormatterTest::$modules |
property |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
Modules to install. |
| LinkFormatterTest::providerLinkFormatter |
function |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
Data provider for ::testLinkFormatter. |
| LinkFormatterTest::setUp |
function |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
|
| LinkFormatterTest::testFormatterLinkItem |
function |
core/modules/link/tests/src/Unit/LinkFormatterTest.php |
Tests when LinkItem::getUrl returns a functional URL. |
| LinkFormatterTest::testFormatterLinkItemUrlMalformed |
function |
core/modules/link/tests/src/Unit/LinkFormatterTest.php |
Tests when LinkItem::getUrl with malformed URL renders empty link. |
| LinkFormatterTest::testFormatterLinkItemUrlUnexpectedException |
function |
core/modules/link/tests/src/Unit/LinkFormatterTest.php |
Tests when LinkItem::getUrl throws an unexpected exception. |
| LinkFormatterTest::testLinkFormatter |
function |
core/modules/link/tests/src/Kernel/LinkFormatterTest.php |
Tests the link formatters. |
| LinkGenerationTest |
class |
core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php |
Tests link generation with hooks. |
| LinkGenerationTest.php |
file |
core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php |
|
| LinkGenerationTest::linkAlter |
function |
core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php |
Implements hook_link_alter(). |
| LinkGenerationTest::testHookLinkAlter |
function |
core/tests/Drupal/KernelTests/Core/Url/LinkGenerationTest.php |
Tests how hook_link_alter() can affect escaping of the link text. |
| LinkGenerationTestHooks |
class |
core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php |
Hook implementations for link_generation_test. |
| LinkGenerationTestHooks.php |
file |
core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php |
|
| LinkGenerationTestHooks::linkAlter |
function |
core/modules/system/tests/modules/link_generation_test/src/Hook/LinkGenerationTestHooks.php |
Implements hook_link_alter(). |
| LinkGeneratorTest |
class |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests Drupal\Core\Utility\LinkGenerator. |
| LinkGeneratorTest.php |
file |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
|
| LinkGeneratorTest::$defaultOptions |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Contains the LinkGenerator default options. |
| LinkGeneratorTest::$linkGenerator |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
The tested link generator. |
| LinkGeneratorTest::$moduleHandler |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
The mocked module handler. |
| LinkGeneratorTest::$renderer |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
The mocked renderer service. |
| LinkGeneratorTest::$urlAssembler |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
The mocked URL Assembler service. |
| LinkGeneratorTest::$urlGenerator |
property |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
The mocked URL generator. |
| LinkGeneratorTest::assertLink |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Checks that a link with certain properties exists in a given HTML snippet. |
| LinkGeneratorTest::assertNoXPathResults |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Checks that the given XPath query has no results in a given HTML snippet. |
| LinkGeneratorTest::providerTestGenerateHrefs |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Provides test data for testing the link method. |
| LinkGeneratorTest::setUp |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
|
| LinkGeneratorTest::testGenerate |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with a route. |
| LinkGeneratorTest::testGenerateActive |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the active class on the link method. |
| LinkGeneratorTest::testGenerateAttributes |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with additional attributes. |
| LinkGeneratorTest::testGenerateBubbleableMetadata |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the LinkGenerator's support for collecting bubbleable metadata. |
| LinkGeneratorTest::testGenerateButton |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with the <button> route. |
| LinkGeneratorTest::testGenerateExternal |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with an external URL. |
| LinkGeneratorTest::testGenerateHrefs |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with certain hrefs. |
| LinkGeneratorTest::testGenerateNoLink |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with the <nolink> route. |
| LinkGeneratorTest::testGenerateNone |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with the <none> route. |
| LinkGeneratorTest::testGenerateOptions |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with arbitrary passed options. |
| LinkGeneratorTest::testGenerateParametersAsQuery |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with passed query options via parameters. |
| LinkGeneratorTest::testGenerateQuery |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with passed query options. |
| LinkGeneratorTest::testGenerateTwice |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests whether rendering the same link twice works. |
| LinkGeneratorTest::testGenerateUrlWithQuotes |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the generate() method with a URL containing double quotes. |
| LinkGeneratorTest::testGenerateWithAlterHook |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests altering the URL object using hook_link_alter(). |
| LinkGeneratorTest::testGenerateWithHtml |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with html. |
| LinkGeneratorTest::testGenerateXss |
function |
core/tests/Drupal/Tests/Core/Utility/LinkGeneratorTest.php |
Tests the link method with a script tab. |