From 0064be520641c95c4be15fa4935864da4ae8081f Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Thu, 28 May 2020 19:23:54 -0500 Subject: [PATCH] Issue #3138775 by sja112, mohrerao: Fix "Monoceros" relevant typos in core (cherry picked from commit 25595ff2c370670e2ed5a53e1b496e6500d0498c) --- .../editor/tests/src/Functional/EditorAdminTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/modules/editor/tests/src/Functional/EditorAdminTest.php b/core/modules/editor/tests/src/Functional/EditorAdminTest.php index 55294487026b..3065c3fa6004 100644 --- a/core/modules/editor/tests/src/Functional/EditorAdminTest.php +++ b/core/modules/editor/tests/src/Functional/EditorAdminTest.php @@ -101,15 +101,15 @@ public function testAddEditorToExistingFormat() { * Tests adding a text editor to a new text format. */ public function testAddEditorToNewFormat() { - $this->addEditorToNewFormat('monocerus', 'Monocerus'); - $this->verifyUnicornEditorConfiguration('monocerus'); + $this->addEditorToNewFormat('monoceros', 'Monoceros'); + $this->verifyUnicornEditorConfiguration('monoceros'); } /** * Tests format disabling. */ public function testDisableFormatWithEditor() { - $formats = ['monocerus' => 'Monocerus', 'tattoo' => 'Tattoo']; + $formats = ['monoceros' => 'Monoceros', 'tattoo' => 'Tattoo']; // Install the node module. $this->container->get('module_installer')->install(['node']); @@ -127,13 +127,13 @@ public function testDisableFormatWithEditor() { $permissions[] = "use text format $format"; } - // Create a node having the body format value 'moncerus'. + // Create a node having the body format value 'monoceros'. $node = Node::create([ 'type' => $node_type->id(), 'title' => $this->randomString(), ]); $node->body->value = $this->randomString(100); - $node->body->format = 'monocerus'; + $node->body->format = 'monoceros'; $node->save(); // Log in as an user able to use both formats and edit nodes of created type. @@ -148,7 +148,7 @@ public function testDisableFormatWithEditor() { $this->assertRaw($text); // Disable the format assigned to the 'body' field of the node. - FilterFormat::load('monocerus')->disable()->save(); + FilterFormat::load('monoceros')->disable()->save(); // Edit again the node. $this->drupalGet('node/' . $node->id() . '/edit'); -- GitLab