Skip to content
Snippets Groups Projects
Commit 3a37ee12 authored by Alex Pott's avatar Alex Pott Committed by Marcos Cano
Browse files

Issue #3502706 by alexpott, marcoscano: Tidy up spelling and fail if we break it

parent bf04d55c
Branches
Tags
1 merge request!102Improve spelling
Pipeline #408286 failed
# List of words excluded from cspell validation for the project Entity Usage.
basefield
basefields
embed
embedd
linkit
myref
onlyone
summarise
testlist
webform
webforms
......@@ -42,3 +42,7 @@ phpcs:
allow_failure: false
phpstan:
allow_failure: false
cspell:
allow_failure: false
eslint:
allow_failure: false
......@@ -260,7 +260,7 @@ class ListUsageController extends ControllerBase {
foreach ($revision_groups as $index => $label) {
if (!empty($revisions[$index])) {
$used_in[] = $this->summariseRevisionGroup($default_langcode, $label, $revisions[$index]);
$used_in[] = $this->summarizeRevisionGroup($default_langcode, $label, $revisions[$index]);
}
}
......@@ -319,7 +319,7 @@ class ListUsageController extends ControllerBase {
* @return array
* A render array summarizing the information passed in.
*/
protected function summariseRevisionGroup($default_langcode, $revision_label, array $languages) {
protected function summarizeRevisionGroup($default_langcode, $revision_label, array $languages) {
$language_objects = $this->languageManager()->getLanguages(LanguageInterface::STATE_ALL);
if (count($languages) === 1 && !empty($languages[$default_langcode])) {
// If there's only one relevant revision and it's the entity's default
......
......@@ -37,7 +37,7 @@ interface EntityUpdateManagerInterface {
* - default: The main entity (default language, default revision) is being
* deleted (delete also other languages and revisions).
* - translation: Only one translation is being deleted.
* - revision: Onlyone revision is being deleted.
* - revision: Only one revision is being deleted.
*
* @throws \InvalidArgumentException
*/
......
......@@ -92,7 +92,7 @@ class EntityUsageLayoutBuilderTest extends BrowserTestBase {
$type->save();
$fieldStorage = FieldStorageConfig::create([
'field_name' => 'myref',
'field_name' => 'my_ref',
'entity_type' => 'block_content',
'type' => 'entity_reference',
'settings' => [
......@@ -109,14 +109,14 @@ class EntityUsageLayoutBuilderTest extends BrowserTestBase {
$block = BlockContent::create([
'type' => $type->id(),
'reusable' => 0,
'myref' => $innerEntity,
'my_ref' => $innerEntity,
]);
$block->save();
$block2 = BlockContent::create([
'type' => $type->id(),
'reusable' => 1,
'myref' => $innerEntity2,
'my_ref' => $innerEntity2,
]);
$block2->save();
......
......@@ -550,7 +550,7 @@ class EmbeddedContentTest extends EntityUsageJavascriptTestBase {
/**
* Tests the MediaEmbed plugin parsing does not error with malformed HTML.
*/
public function testMediaEmbeddWithMalformedHtml() {
public function testMediaEmbedWithMalformedHtml() {
$embedded_text = '<drupal-media data-entity-type="media" data-entity-uuid=""></drupal-media>';
$node = Node::create([
......
......@@ -103,7 +103,7 @@ class EntityUsageTest extends EntityKernelTestBase {
* @covers \Drupal\entity_usage\EntityUsage::listSources
* @covers \Drupal\entity_usage\EntityUsage::listTargets
*/
public function testlistSources() {
public function testListSources() {
// Add additional entity to test with more than 1 source.
$entity_3 = EntityTest::create(['name' => $this->randomMachineName()]);
$entity_3->save();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment