diff --git a/core/modules/editor/tests/src/Functional/EditorAdminTest.php b/core/modules/editor/tests/src/Functional/EditorAdminTest.php index e8b278806b3..ec8c0174eb2 100644 --- a/core/modules/editor/tests/src/Functional/EditorAdminTest.php +++ b/core/modules/editor/tests/src/Functional/EditorAdminTest.php @@ -113,7 +113,7 @@ public function testDisableFormatWithEditor() { $this->container->get('module_installer')->install(['node']); $this->resetAll(); // Create a new node type and attach the 'body' field to it. - $node_type = NodeType::create(['type' => mb_strtolower($this->randomMachineName())]); + $node_type = NodeType::create(['type' => mb_strtolower($this->randomMachineName()), 'name' => $this->randomString()]); $node_type->save(); node_add_body_field($node_type, $this->randomString());