protected function ContentEntityChangedTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php \Drupal\KernelTests\Core\Entity\ContentEntityChangedTest::setUp()
- 9 core/tests/Drupal/KernelTests/Core/Entity/ContentEntityChangedTest.php \Drupal\KernelTests\Core\Entity\ContentEntityChangedTest::setUp()
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ ContentEntityChangedTest.php, line 48
Class
- ContentEntityChangedTest
- Tests basic EntityChangedInterface functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
protected function setUp() : void {
parent::setUp();
// Enable an additional language.
ConfigurableLanguage::createFromLangcode('de')
->save();
ConfigurableLanguage::createFromLangcode('fr')
->save();
$this
->installEntitySchema('entity_test_mul_changed');
$this
->installEntitySchema('entity_test_mulrev_changed');
$this->mulChangedStorage = $this->entityTypeManager
->getStorage('entity_test_mul_changed');
$this->mulRevChangedStorage = $this->entityTypeManager
->getStorage('entity_test_mulrev_changed');
}