NodeTestBase.php in Freelinking 8.3
Same filename and directory in other branches
File
tests/src/Unit/Plugin/freelinking/NodeTestBase.phpView source
<?php
namespace Drupal\Tests\freelinking\Unit\Plugin\freelinking;
use Drupal\Core\Language\Language;
use Drupal\Tests\UnitTestCase;
/**
* Provides helper methods for freelinking node plugins.
*/
abstract class NodeTestBase extends UnitTestCase {
/**
* Get a language object to pass into the plugin.
*
* @return \Drupal\Core\Language\LanguageInterface
* Return language object with default values.
*/
public static function getDefaultLanguage() {
return new Language(Language::$defaultValues);
}
}
Classes
Name | Description |
---|---|
NodeTestBase | Provides helper methods for freelinking node plugins. |