
| Current Path : /var/www/html/strat/web/core/modules/taxonomy/tests/src/Kernel/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/taxonomy/tests/src/Kernel/VocabularyValidationTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\taxonomy\Kernel;
use Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase;
use Drupal\taxonomy\Entity\Vocabulary;
/**
* Tests validation of vocabulary entities.
*
* @group taxonomy
*/
class VocabularyValidationTest extends ConfigEntityValidationTestBase {
/**
* {@inheritdoc}
*/
protected static array $propertiesWithOptionalValues = ['description'];
/**
* {@inheritdoc}
*/
protected static $modules = ['taxonomy'];
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->entity = Vocabulary::create([
'vid' => 'test',
'name' => 'Test',
]);
$this->entity->save();
}
}