function MenuValidationTest::setUp
Same name in other branches
- 10 core/modules/system/tests/src/Kernel/Entity/MenuValidationTest.php \Drupal\Tests\system\Kernel\Entity\MenuValidationTest::setUp()
Overrides ConfigEntityValidationTestBase::setUp
File
-
core/
modules/ system/ tests/ src/ Kernel/ Entity/ MenuValidationTest.php, line 27
Class
- MenuValidationTest
- Tests validation of menu entities.
Namespace
Drupal\Tests\system\Kernel\EntityCode
protected function setUp() : void {
parent::setUp();
$this->entity = Menu::create([
'id' => 'test-menu',
'label' => 'Test',
]);
$this->entity
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.