ConfigurableLanguageValidationTest.php
Namespace
Drupal\Tests\language\KernelFile
-
core/
modules/ language/ tests/ src/ Kernel/ ConfigurableLanguageValidationTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\language\Kernel;
use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;
use Drupal\language\Entity\ConfigurableLanguage;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
/**
* Tests validation of configurable_language entities.
*/
class ConfigurableLanguageValidationTest extends ConfigEntityValidationTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'language',
];
/**
* {@inheritdoc}
*/
protected function setUp() : void {
parent::setUp();
$this->entity = ConfigurableLanguage::createFromLangcode('fr');
$this->entity
->save();
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| ConfigurableLanguageValidationTest | Tests validation of configurable_language entities. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.