public static function NodeTestBase::getDefaultLanguage in Freelinking 4.0.x
Same name and namespace in other branches
- 8.3 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 22
Class
- NodeTestBase
- Provides helper methods for freelinking node plugins.
Namespace
Drupal\Tests\freelinking\Unit\Plugin\freelinkingCode
public static function getDefaultLanguage() {
return new Language(Language::$defaultValues);
}