Skip to content

Commit

Permalink
Issue #3138775 by sja112, mohrerao: Fix "Monoceros" relevant typos in…
Browse files Browse the repository at this point in the history
… core

(cherry picked from commit 25595ff2c370670e2ed5a53e1b496e6500d0498c)
  • Loading branch information
xjm committed May 29, 2020
1 parent b9cf246 commit f649aad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/editor/tests/src/Functional/EditorAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand All @@ -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.
Expand All @@ -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');
Expand Down

0 comments on commit f649aad

Please sign in to comment.