Commit 25595ff2 authored by xjm's avatar xjm

Issue #3138775 by sja112, mohrerao: Fix "Monoceros" relevant typos in core

parent e4e64fa0
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment