',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
// HTML filter is not able to secure some tags, these should never be
@@ -466,7 +466,7 @@ public function testHtmlFilter() {
'allowed_html' => '
',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
$f = (string) $filter->process('link', Language::LANGCODE_NOT_SPECIFIED);
$this->assertNormalized($f, 'link', 'HTML filter keeps explicitly allowed attributes, and removes attributes that are not explicitly allowed.');
@@ -478,7 +478,7 @@ public function testHtmlFilter() {
'allowed_html' => '
',
'filter_html_help' => 1,
'filter_html_nofollow' => 0,
- ]
+ ],
]);
$f = (string) $filter->process('link', Language::LANGCODE_NOT_SPECIFIED);
$this->assertIdentical($f, 'link', 'HTML filter removes allowed attributes that do not have an explicitly allowed value.');
@@ -501,7 +501,7 @@ public function testNoFollowFilter() {
'allowed_html' => '',
'filter_html_help' => 1,
'filter_html_nofollow' => 1,
- ]
+ ],
]);
// Test if the rel="nofollow" attribute is added, even if we try to prevent
@@ -549,7 +549,7 @@ public function testUrlFilter() {
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 496,
- ]
+ ],
]);
// @todo Possible categories:
@@ -842,7 +842,7 @@ public function testUrlFilter() {
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 20,
- ]
+ ],
]);
$tests = [
'www.trimmed.com/d/ff.ext?a=1&b=2#a1' => [
@@ -924,7 +924,7 @@ public function testUrlFilterContent() {
$filter->setConfiguration([
'settings' => [
'filter_url_length' => 496,
- ]
+ ],
]);
$path = __DIR__ . '/../..';
diff --git a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php
index 842e52afd6..cccd707bb8 100644
Binary files a/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php and b/core/modules/hal/tests/fixtures/update/drupal-8.rest-hal_update_8301.php differ
diff --git a/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
index 43181323e3..76f1d6fe9e 100644
--- a/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
+++ b/core/modules/hal/tests/src/Functional/EntityResource/Feed/FeedHalJsonTestBase.php
@@ -35,10 +35,10 @@ protected function getExpectedNormalizedEntity() {
return $normalization + [
'_links' => [
'self' => [
- 'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json'
+ 'href' => $this->baseUrl . '/aggregator/sources/1?_format=hal_json',
],
'type' => [
- 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+ 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
],
],
];
@@ -51,7 +51,7 @@ protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
- 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed'
+ 'href' => $this->baseUrl . '/rest/type/aggregator_feed/aggregator_feed',
],
],
];
diff --git a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
index 098868ea89..9d8ea5032d 100644
--- a/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
+++ b/core/modules/hal/tests/src/Kernel/HalLinkManagerTest.php
@@ -91,7 +91,7 @@ public function testGetRelationInternalIds() {
'entity_type_id' => 'node',
'entity_type' => \Drupal::entityTypeManager()->getDefinition('node'),
'bundle' => 'page',
- 'field_name' => 'field_ref'
+ 'field_name' => 'field_ref',
], $internal_ids);
}
diff --git a/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
index acd255ba27..f873104a0c 100644
--- a/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
+++ b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
@@ -165,7 +165,7 @@ public function testDisplayErrorMessagesNotInlineQuickEdit() {
'#title' => 'Test',
'#parents' => ['test'],
'#id' => 'edit-test',
- '#array_parents' => ['test']
+ '#array_parents' => ['test'],
];
$form_state = new FormState();
$form_state->setErrorByName('test', 'invalid');
diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
index 152706798c..1d7f2d944b 100644
--- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
+++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/VariableTranslationTest.php
@@ -43,7 +43,7 @@ class VariableTranslationTest extends MigrateSqlSourceTestCase {
'language' => 'mi',
'site_slogan' => 'Ko whakamataku heke',
'site_name' => 'ingoa_pae',
- ]
+ ],
];
/**
diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php
index 4c9bbac7b6..54fdf6f114 100644
--- a/core/modules/node/src/NodeForm.php
+++ b/core/modules/node/src/NodeForm.php
@@ -100,7 +100,7 @@ public function form(array $form, FormStateInterface $form_state) {
if ($this->operation == 'edit') {
$form['#title'] = $this->t('Edit @type @title', [
'@type' => node_get_type_label($node),
- '@title' => $node->label()
+ '@title' => $node->label(),
]);
}
@@ -146,8 +146,8 @@ public function form(array $form, FormStateInterface $form_state) {
'#type' => 'container',
'#weight' => 99,
'#attributes' => [
- 'class' => ['node-form-footer']
- ]
+ 'class' => ['node-form-footer'],
+ ],
];
$form['status']['#group'] = 'footer';
diff --git a/core/modules/node/src/Tests/NodeRevisionsTest.php b/core/modules/node/src/Tests/NodeRevisionsTest.php
index e9fcece934..4a5b78f504 100644
--- a/core/modules/node/src/Tests/NodeRevisionsTest.php
+++ b/core/modules/node/src/Tests/NodeRevisionsTest.php
@@ -171,7 +171,7 @@ public function testRevisions() {
$this->assertRaw(t('@type %title has been reverted to the revision from %revision-date.', [
'@type' => 'Basic page',
'%title' => $nodes[1]->label(),
- '%revision-date' => format_date($nodes[1]->getRevisionCreationTime())
+ '%revision-date' => format_date($nodes[1]->getRevisionCreationTime()),
]), 'Revision reverted.');
$node_storage->resetCache([$node->id()]);
$reverted_node = $node_storage->load($node->id());
diff --git a/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
index bc377b094a..06bedade85 100644
--- a/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
+++ b/core/modules/options/tests/src/Kernel/Views/OptionsListFilterTest.php
@@ -78,20 +78,20 @@ public function testViewsTestOptionsListGroupedFilter() {
'operator' => 'or',
'value' => [
$this->fieldValues[0] => $this->fieldValues[0],
- ]
+ ],
],
2 => [
'title' => 'Second',
'operator' => 'or',
'value' => [
$this->fieldValues[1] => $this->fieldValues[1],
- ]
+ ],
],
],
],
'reduce_duplicates' => '',
'plugin_id' => 'list_field',
- ]
+ ],
];
$view->setDisplay();
$view->displayHandlers->get('default')->overrideOption('filters', $filters);
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
index d8812a3893..69f7c3aafe 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestResourceTestBase.php
@@ -95,7 +95,7 @@ protected function getExpectedNormalizedEntity() {
],
],
'created' => [
- $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value)
+ $this->formatExpectedTimestampItemValues((int) $this->entity->get('created')->value),
],
'user_id' => [
[
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
index 1e79395a60..498404dc96 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/Feed/FeedResourceTestBase.php
@@ -66,33 +66,33 @@ protected function getExpectedNormalizedEntity() {
return [
'uuid' => [
[
- 'value' => 'abcdefg'
- ]
+ 'value' => 'abcdefg',
+ ],
],
'fid' => [
[
- 'value' => 1
- ]
+ 'value' => 1,
+ ],
],
'langcode' => [
[
- 'value' => 'en'
- ]
+ 'value' => 'en',
+ ],
],
'url' => [
[
- 'value' => 'http://example.com/rss.xml'
- ]
+ 'value' => 'http://example.com/rss.xml',
+ ],
],
'title' => [
[
- 'value' => 'Feed'
- ]
+ 'value' => 'Feed',
+ ],
],
'refresh' => [
[
- 'value' => 900
- ]
+ 'value' => 900,
+ ],
],
'checked' => [
$this->formatExpectedTimestampItemValues(123456789),
@@ -102,28 +102,28 @@ protected function getExpectedNormalizedEntity() {
],
'link' => [
[
- 'value' => 'http://example.com'
- ]
+ 'value' => 'http://example.com',
+ ],
],
'description' => [
[
- 'value' => 'Feed Resource Test 1'
- ]
+ 'value' => 'Feed Resource Test 1',
+ ],
],
'image' => [
[
- 'value' => 'http://example.com/feed_logo'
- ]
+ 'value' => 'http://example.com/feed_logo',
+ ],
],
'hash' => [
[
- 'value' => 'abcdefg'
- ]
+ 'value' => 'abcdefg',
+ ],
],
'etag' => [
[
- 'value' => 'hijklmn'
- ]
+ 'value' => 'hijklmn',
+ ],
],
'modified' => [
$this->formatExpectedTimestampItemValues(123456789),
@@ -138,23 +138,23 @@ protected function getNormalizedPostEntity() {
return [
'title' => [
[
- 'value' => 'Feed Resource Post Test'
- ]
+ 'value' => 'Feed Resource Post Test',
+ ],
],
'url' => [
[
- 'value' => 'http://example.com/feed'
- ]
+ 'value' => 'http://example.com/feed',
+ ],
],
'refresh' => [
[
- 'value' => 900
- ]
+ 'value' => 900,
+ ],
],
'description' => [
[
- 'value' => 'Feed Resource Post Test Description'
- ]
+ 'value' => 'Feed Resource Post Test Description',
+ ],
],
];
}
diff --git a/core/modules/rest/tests/src/Functional/ResourceTest.php b/core/modules/rest/tests/src/Functional/ResourceTest.php
index 1e8babe0db..d04b990e60 100644
--- a/core/modules/rest/tests/src/Functional/ResourceTest.php
+++ b/core/modules/rest/tests/src/Functional/ResourceTest.php
@@ -121,7 +121,7 @@ public function testSerializationClassIsOptional() {
],
'supported_auth' => [
'cookie',
- ]
+ ],
],
],
])->save();
diff --git a/core/modules/system/src/Form/RegionalForm.php b/core/modules/system/src/Form/RegionalForm.php
index c02a905b82..2fecbf434f 100644
--- a/core/modules/system/src/Form/RegionalForm.php
+++ b/core/modules/system/src/Form/RegionalForm.php
@@ -135,7 +135,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
DRUPAL_USER_TIMEZONE_EMPTY => t('Empty time zone'),
DRUPAL_USER_TIMEZONE_SELECT => t('Users may set their own time zone at registration'),
],
- '#description' => t('Only applied if users may set their own time zone.')
+ '#description' => t('Only applied if users may set their own time zone.'),
];
return parent::buildForm($form, $form_state);
diff --git a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
index 9ba11b7733..2a6b83965e 100644
--- a/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
+++ b/core/modules/system/tests/modules/early_rendering_controller_test/src/EarlyRenderingTestController.php
@@ -62,7 +62,7 @@ public function renderArray() {
'#pre_render' => [function () {
$elements = $this->earlyRenderContent();
return $elements;
- }
+ },
],
];
}
diff --git a/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc b/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
index 988505d58a..6ccfabc064 100644
--- a/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
+++ b/core/modules/system/tests/modules/entity_test_update/update/entity_rev_pub_updates_8400.inc
@@ -38,7 +38,7 @@ function entity_test_update_update_8400() {
$revision_metadata_keys = [
'revision_user' => 'revision_user',
'revision_created' => 'revision_created',
- 'revision_log_message' => 'revision_log_message'
+ 'revision_log_message' => 'revision_log_message',
];
$entity_type->set('revision_metadata_keys', $revision_metadata_keys);
diff --git a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
index eb4a01c99c..8579ec2ddd 100644
--- a/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
+++ b/core/modules/system/tests/src/Functional/Update/EntityUpdateToRevisionableAndPublishableTest.php
@@ -161,7 +161,7 @@ protected function updateEntityTypeDefinition() {
$revision_metadata_keys = [
'revision_user' => 'revision_user',
'revision_created' => 'revision_created',
- 'revision_log_message' => 'revision_log_message'
+ 'revision_log_message' => 'revision_log_message',
];
$entity_type->set('revision_metadata_keys', $revision_metadata_keys);
diff --git a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
index a66eaf51c6..df27fc1a69 100644
--- a/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
+++ b/core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
@@ -28,7 +28,7 @@ public function defaultConfiguration() {
'sort' => [
'field' => 'name',
'direction' => 'asc',
- ]
+ ],
] + parent::defaultConfiguration();
}
diff --git a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
index 73d7e2e623..717b1ebcb7 100644
--- a/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/TextCckTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
index 44fb04e71b..97e25b3dc1 100644
--- a/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
+++ b/core/modules/text/tests/src/Unit/Migrate/d6/TextFieldTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
index 6f2d967029..d315b750c8 100644
--- a/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
+++ b/core/modules/text/tests/src/Unit/Plugin/migrate/cckfield/TextCckTest.php
@@ -76,7 +76,7 @@ public function testProcessBooleanTextImplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo\nbar",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
@@ -101,7 +101,7 @@ public function testProcessBooleanTextExplicitValues() {
'widget_type' => 'optionwidgets_onoff',
'global_settings' => [
'allowed_values' => "foo|Foo\nbaz|Baz",
- ]
+ ],
];
$this->plugin->processCckFieldValues($this->migration, 'field', $info);
diff --git a/core/modules/views/tests/src/Functional/DefaultViewsTest.php b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
index 3e7d0b48b2..6e5d4ff83c 100644
--- a/core/modules/views/tests/src/Functional/DefaultViewsTest.php
+++ b/core/modules/views/tests/src/Functional/DefaultViewsTest.php
@@ -97,7 +97,7 @@ protected function setUp($import_test_views = TRUE) {
'status' => CommentInterface::PUBLISHED,
'entity_id' => $node->id(),
'entity_type' => 'node',
- 'field_name' => 'comment'
+ 'field_name' => 'comment',
];
Comment::create($comment)->save();
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
index 6748152987..d8deaa598b 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayTest.php
@@ -285,7 +285,7 @@ public function testOutputIsEmpty() {
'table' => 'views_test_data',
'field' => 'id',
'id' => 'id',
- 'value' => ['value' => 7297]
+ 'value' => ['value' => 7297],
];
$view->setHandler('default', 'filter', 'id', $item);
$this->executeView($view);
diff --git a/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
index 0f209cac2e..a113f0c4ff 100644
--- a/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php
@@ -35,8 +35,8 @@ protected function viewsData() {
'title' => 'Test Example area',
'help' => 'A area handler which just exists for tests.',
'area' => [
- 'id' => 'test_example'
- ]
+ 'id' => 'test_example',
+ ],
];
return $data;
diff --git a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
index e49ef7a2c7..ac8000a8d8 100644
--- a/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/SortTranslationTest.php
@@ -59,7 +59,7 @@ protected function setUp($import_test_views = TRUE) {
'entity_type' => 'node',
'bundle' => 'article',
'label' => 'Translated text',
- 'translatable' => TRUE
+ 'translatable' => TRUE,
])->save();
FieldStorageConfig::create([
diff --git a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
index 1f9c6dabd1..e28207e04e 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php
@@ -89,12 +89,12 @@ public function testBase() {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
'value' => $random_name_2,
- 'operator' => '<>'
+ 'operator' => '<>',
],
];
$join_info = $this->buildJoin($view, $configuration, 'users3');
@@ -111,7 +111,7 @@ public function testBase() {
$configuration['extra'] = [
[
'field' => 'name',
- 'value' => $random_name_1
+ 'value' => $random_name_1,
],
[
'field' => 'name',
diff --git a/core/modules/views/tests/src/Kernel/ViewStorageTest.php b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
index 6561b4fe14..e6cce86f2e 100644
--- a/core/modules/views/tests/src/Kernel/ViewStorageTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewStorageTest.php
@@ -275,7 +275,7 @@ protected function displayMethodTests() {
$options = [
'alter' => [
- 'text' => $this->randomMachineName()
+ 'text' => $this->randomMachineName(),
],
];
$id2 = $view->addHandler($display_id, 'field', 'views_test_data', 'name', $options);
diff --git a/core/modules/views_ui/tests/src/Functional/DisplayTest.php b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
index 44724b4211..cb3d61cffe 100644
--- a/core/modules/views_ui/tests/src/Functional/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/Functional/DisplayTest.php
@@ -45,7 +45,7 @@ public function testAddDisplay() {
*/
public function testReorderDisplay() {
$view = [
- 'block[create]' => TRUE
+ 'block[create]' => TRUE,
];
$view = $this->randomView($view);
@@ -60,7 +60,7 @@ public function testReorderDisplay() {
// Put the block display in front of the page display.
$edit = [
'displays[page_1][weight]' => 2,
- 'displays[block_1][weight]' => 1
+ 'displays[block_1][weight]' => 1,
];
$this->drupalPostForm(NULL, $edit, t('Apply'));
$this->drupalPostForm(NULL, [], t('Save'));
diff --git a/core/modules/views_ui/tests/src/Functional/HandlerTest.php b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
index cf3a8e8e23..428432eaef 100644
--- a/core/modules/views_ui/tests/src/Functional/HandlerTest.php
+++ b/core/modules/views_ui/tests/src/Functional/HandlerTest.php
@@ -73,7 +73,7 @@ protected function viewsData() {
'id' => 'standard',
'base' => 'users_field_data',
'base field' => 'uid',
- ]
+ ],
];
// Create a dummy field with no help text.
diff --git a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
index c8748342fb..cc43936d6f 100644
--- a/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
+++ b/core/tests/Drupal/FunctionalTests/HttpKernel/CorsIntegrationTest.php
@@ -83,7 +83,7 @@ public function testCrossSiteRequest() {
$response = $httpClient->request('POST', $url->setAbsolute()->toString(), [
'headers' => [
'Origin' => $origin,
- ]
+ ],
]);
$this->assertEquals(200, $response->getStatusCode());
}
diff --git a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
index 3aaac143ea..96b59d7be0 100644
--- a/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
+++ b/core/tests/Drupal/FunctionalTests/Routing/CaseInsensitivePathTest.php
@@ -63,8 +63,8 @@ public function testMixedCasePaths() {
$this->drupalGet('admin/content', [
'query' => [
- 'title' => 'FooBarBaz'
- ]
+ 'title' => 'FooBarBaz',
+ ],
]);
$this->assertSession()->linkExists('FooBarBaz');
@@ -74,8 +74,8 @@ public function testMixedCasePaths() {
$this->drupalGet('Admin/Content', [
'query' => [
- 'title' => 'FooBarBaz'
- ]
+ 'title' => 'FooBarBaz',
+ ],
]);
$this->assertSession()->linkExists('FooBarBaz');
diff --git a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
index 4aca50032b..1f6af1b892 100644
--- a/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
+++ b/core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBase.php
@@ -265,7 +265,7 @@ protected function initMink() {
}
$selectors_handler = new SelectorsHandler([
- 'hidden_field_selector' => new HiddenFieldSelector()
+ 'hidden_field_selector' => new HiddenFieldSelector(),
]);
$session = new Session($driver, $selectors_handler);
$this->mink = new Mink();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
index 4974a74cb7..afd7e0d9b7 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityLoadByUuidTest.php
@@ -35,12 +35,12 @@ public function testLoadEntityByUuidAccessChecking() {
// Create two test entities.
$entity_0 = EntityTest::create([
'type' => 'entity_test',
- 'name' => 'published entity'
+ 'name' => 'published entity',
]);
$entity_0->save();
$entity_1 = EntityTest::create([
'type' => 'entity_test',
- 'name' => 'unpublished entity'
+ 'name' => 'unpublished entity',
]);
$entity_1->save();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index 0464443dfd..bb38a9f91b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -671,7 +671,7 @@ public function testCaseSensitivity() {
'translatable' => FALSE,
'settings' => [
'case_sensitive' => FALSE,
- ]
+ ],
]);
$field_storage->save();
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
index 3f182c91e8..be609d8d71 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
@@ -150,7 +150,7 @@ public function testPreExistingItemsValidation() {
['entity' => $unpublished_node],
['entity' => $different_bundle_node],
['entity' => $deleted_node],
- ]
+ ],
]);
// Check that users with access are able pass the validation for fields
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
index c7f1f3d562..aea79dc372 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
@@ -94,7 +94,7 @@ public function providerTestRender() {
'#tag' => 'style',
'#value' => $value,
'#attributes' => [
- 'media' => $media
+ 'media' => $media,
],
'#browsers' => $browsers,
];
@@ -461,7 +461,7 @@ public function testRenderInvalidType() {
'media' => 'all',
'preprocess' => TRUE,
'browsers' => [],
- 'data' => 'http://example.com/popular.js'
+ 'data' => 'http://example.com/popular.js',
];
$this->renderer->render($css_group);
}
diff --git a/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php b/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
index 455cbcf799..fde641bd40 100644
--- a/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
+++ b/core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
@@ -51,7 +51,7 @@ public function providerTestWeekDaysOrdered() {
5 => 'Friday',
6 => 'Saturday',
0 => 'Sunday',
- ]
+ ],
];
$data[] = [
2,
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
index 90869c5635..6ec819ee3c 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
@@ -376,7 +376,7 @@ public function testProcessWithIdAndExtraArguments() {
$container
->register('consumer_id', __NAMESPACE__ . '\ValidConsumerWithExtraArguments')
->addTag('service_collector', [
- 'call' => 'addWithId'
+ 'call' => 'addWithId',
]);
$container
diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
index 6406abc812..601346f985 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php
@@ -755,7 +755,7 @@ public function testGetTableMappingRevisionableTranslatable(array $entity_keys)
$revision_metadata_keys = [
'revision_created' => 'revision_timestamp',
'revision_user' => 'revision_uid',
- 'revision_log_message' => 'revision_log'
+ 'revision_log_message' => 'revision_log',
];
$this->entityType->expects($this->atLeastOnce())
diff --git a/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php b/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
index bfd5143849..d2672b344b 100644
--- a/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/EntityReferenceSelection/EntityReferenceSelectionUnitTest.php
@@ -83,7 +83,7 @@ public function providerTestSetConfiguration() {
'bar' => 'bar value',
'baz' => 'baz value',
],
- ]
+ ],
],
],
[
@@ -96,7 +96,7 @@ public function providerTestSetConfiguration() {
'handler_settings' => [
// Same setting from root level takes precedence.
'setting2' => 'this will be overwritten',
- ]
+ ],
],
],
];
diff --git a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
index 4fda0022b7..820c6bd47c 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
@@ -52,7 +52,7 @@ protected function getModuleHandler() {
'type' => 'module',
'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
'filename' => 'module_handler_test.module',
- ]
+ ],
], $this->cacheBackend);
return $module_handler;
}
@@ -107,8 +107,8 @@ public function testModuleReloading() {
'type' => 'module',
'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
'filename' => 'module_handler_test.module',
- ]
- ], $this->cacheBackend
+ ],
+ ], $this->cacheBackend,
])
->setMethods(['load'])
->getMock();
@@ -177,7 +177,7 @@ public function testSetModuleList() {
$fixture_module_handler = $this->getModuleHandler();
$module_handler = $this->getMockBuilder(ModuleHandler::class)
->setConstructorArgs([
- $this->root, [], $this->cacheBackend
+ $this->root, [], $this->cacheBackend,
])
->setMethods(['resetImplementations'])
->getMock();
@@ -205,7 +205,7 @@ public function testAddModule() {
$module_handler = $this->getMockBuilder(ModuleHandler::class)
->setConstructorArgs([
- $this->root, [], $this->cacheBackend
+ $this->root, [], $this->cacheBackend,
])
->setMethods(['resetImplementations'])
->getMock();
@@ -227,7 +227,7 @@ public function testAddProfile() {
$module_handler = $this->getMockBuilder(ModuleHandler::class)
->setConstructorArgs([
- $this->root, [], $this->cacheBackend
+ $this->root, [], $this->cacheBackend,
])
->setMethods(['resetImplementations'])
->getMock();
@@ -264,8 +264,8 @@ public function testLoadAllIncludes() {
'type' => 'module',
'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
'filename' => 'module_handler_test.module',
- ]
- ], $this->cacheBackend
+ ],
+ ], $this->cacheBackend,
])
->setMethods(['loadInclude'])
->getMock();
@@ -353,8 +353,8 @@ public function testCachedGetImplementations() {
'type' => 'module',
'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
'filename' => 'module_handler_test.module',
- ]
- ], $this->cacheBackend
+ ],
+ ], $this->cacheBackend,
])
->setMethods(['buildImplementationInfo', 'loadInclude'])
->getMock();
@@ -391,8 +391,8 @@ public function testCachedGetImplementationsMissingMethod() {
'type' => 'module',
'pathname' => 'core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/module_handler_test.info.yml',
'filename' => 'module_handler_test.module',
- ]
- ], $this->cacheBackend
+ ],
+ ], $this->cacheBackend,
])
->setMethods(['buildImplementationInfo'])
->getMock();
diff --git a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
index 149986a8b9..1d5d26b741 100644
--- a/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
+++ b/core/tests/Drupal/Tests/Core/PathProcessor/PathProcessorTest.php
@@ -49,7 +49,7 @@ protected function setUp() {
$language_prefixes = array_keys($this->languages);
$config = [
'url' => [
- 'prefixes' => array_combine($language_prefixes, $language_prefixes)
+ 'prefixes' => array_combine($language_prefixes, $language_prefixes),
],
];