ConfigurableLanguageValidationTest.php

Same filename in other branches
  1. 10 core/modules/language/tests/src/Kernel/ConfigurableLanguageValidationTest.php

Namespace

Drupal\Tests\language\Kernel

File

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;

/**
 * Tests validation of configurable_language entities.
 *
 * @group language
 */
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.