summaryrefslogtreecommitdiffstats
path: root/core/modules/menu_ui/src/Tests/MenuTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/menu_ui/src/Tests/MenuTest.php')
-rw-r--r--core/modules/menu_ui/src/Tests/MenuTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/menu_ui/src/Tests/MenuTest.php b/core/modules/menu_ui/src/Tests/MenuTest.php
index d88911a..d350ab6 100644
--- a/core/modules/menu_ui/src/Tests/MenuTest.php
+++ b/core/modules/menu_ui/src/Tests/MenuTest.php
@@ -157,7 +157,7 @@ class MenuTest extends MenuWebTestBase {
$menu_name = substr(hash('sha256', $this->randomMachineName(16)), 0, MENU_MAX_MENU_NAME_LENGTH_UI);
$label = $this->randomMachineName(16);
- $menu = entity_create('menu', array(
+ $menu = Menu::create(array(
'id' => $menu_name,
'label' => $label,
'description' => 'Description text',