You are here

public static function NodeTestBase::getDefaultLanguage in Freelinking 8.3

Same name and namespace in other branches
  1. 4.0.x tests/src/Unit/Plugin/freelinking/NodeTestBase.php \Drupal\Tests\freelinking\Unit\Plugin\freelinking\NodeTestBase::getDefaultLanguage()

Get a language object to pass into the plugin.

Return value

\Drupal\Core\Language\LanguageInterface Return language object with default values.

5 calls to NodeTestBase::getDefaultLanguage()
NodeTest::buildLinkProvider in tests/src/Unit/Plugin/freelinking/NodeTest.php
Provide test parameters for ::testBuildLink.
NodeTest::setUp in tests/src/Unit/Plugin/freelinking/NodeTest.php
NodeTest::testBuildLink in tests/src/Unit/Plugin/freelinking/NodeTest.php
Assert the buildLink method returns render array.
NodeTitleFailoverTest::testFailover in tests/src/Unit/Plugin/freelinking/NodeTitleFailoverTest.php
Assert that failover option displays correctly.
NodeTitleTest::testBuildLink in tests/src/Unit/Plugin/freelinking/NodeTitleTest.php
Assert that build link will return a render array.

File

tests/src/Unit/Plugin/freelinking/NodeTestBase.php, line 19

Class

NodeTestBase
Provides helper methods for freelinking node plugins.

Namespace

Drupal\Tests\freelinking\Unit\Plugin\freelinking

Code

public static function getDefaultLanguage() {
  return new Language(Language::$defaultValues);
}