function MenuValidationTest::setUp
Same name in other branches
- 11.x 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 28
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.