From a36e1d8e85a53c2a6fdcedaa29fec10baf201f36 Mon Sep 17 00:00:00 2001 From: Tim Plunkett <git@plnktt.com> Date: Thu, 13 Mar 2025 00:28:22 -0400 Subject: [PATCH] Issue #3512609 by tim.plunkett: PHPCS XML file out of date with core 11.x --- core.phpcs.xml.dist | 5 ++++- .../src/FunctionalJavascript/ProjectBrowserUiJsonApiTest.php | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core.phpcs.xml.dist b/core.phpcs.xml.dist index b603987bf..56abaf1ed 100644 --- a/core.phpcs.xml.dist +++ b/core.phpcs.xml.dist @@ -61,7 +61,9 @@ TagsNotGrouped, ParamGroup --> <exclude name="Drupal.Commenting.DocComment.LongFullStop"/> <exclude name="Drupal.Commenting.DocComment.MissingShort"/> - <exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/> + </rule> + <rule ref="Drupal.Commenting.DocComment"> + <exclude-pattern>core/tests/*</exclude-pattern> </rule> <rule ref="Drupal.Commenting.DocCommentAlignment"/> <rule ref="Drupal.Commenting.DocCommentLongArraySyntax"/> @@ -82,6 +84,7 @@ <include-pattern>core/modules/*/Plugin/views/style/*</include-pattern> <include-pattern>*/Database/*</include-pattern> <include-pattern>*/FunctionalJavascript/*</include-pattern> + <include-pattern>*/Kernel/*</include-pattern> <include-pattern>*/Functional/*</include-pattern> </rule> <rule ref="Drupal.Commenting.FunctionComment.MissingParamType"/> diff --git a/tests/src/FunctionalJavascript/ProjectBrowserUiJsonApiTest.php b/tests/src/FunctionalJavascript/ProjectBrowserUiJsonApiTest.php index b0346a189..4077dc64e 100644 --- a/tests/src/FunctionalJavascript/ProjectBrowserUiJsonApiTest.php +++ b/tests/src/FunctionalJavascript/ProjectBrowserUiJsonApiTest.php @@ -59,8 +59,6 @@ final class ProjectBrowserUiJsonApiTest extends WebDriverTestBase { // Fake the Drupal version. $this->container->get('state')->set('project_browser:test_deprecated_api', TRUE); - $assert_session = $this->assertSession(); - $this->drupalGet('admin/modules/browse/drupalorg_jsonapi'); $this->svelteInitHelper('text', 'Unsupported version'); } -- GitLab