Verified Commit 67bad1b3 authored by Dave Long's avatar Dave Long
Browse files

Issue #3359179 by Spokje: Fix PHPStan L1 errors "@coversDefaultClass defined on class method foo."

parent cc97afe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@ public function testModuleUninstalledMenuLinks() {
  /**
   * Tests handling of pending revisions.
   *
   * @coversDefaultClass \Drupal\menu_link_content\Plugin\Validation\Constraint\MenuTreeHierarchyConstraintValidator
   * @covers \Drupal\menu_link_content\Plugin\Validation\Constraint\MenuTreeHierarchyConstraintValidator::validate
   */
  public function testPendingRevisions() {
    /** @var \Drupal\Core\Entity\RevisionableStorageInterface $storage */
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ public function testPublishWorkspaceAccess() {
  }

  /**
   * @coversDefaultClass \Drupal\workspaces\Plugin\EntityReferenceSelection\WorkspaceSelection
   * @covers \Drupal\workspaces\Plugin\EntityReferenceSelection\WorkspaceSelection::getReferenceableEntities
   */
  public function testWorkspaceSelection() {
    $own_permission_user = $this->createUser(['view own workspace']);
+0 −15
Original line number Diff line number Diff line
@@ -1465,11 +1465,6 @@ parameters:
			count: 1
			path: modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php

		-
			message: "#^@coversDefaultClass defined on class method testPendingRevisions\\.$#"
			count: 1
			path: modules/menu_link_content/tests/src/Kernel/MenuLinksTest.php

		-
			message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:11\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
			count: 2
@@ -2640,11 +2635,6 @@ parameters:
			count: 1
			path: modules/workspaces/src/WorkspacePublisher.php

		-
			message: "#^@coversDefaultClass defined on class method testWorkspaceSelection\\.$#"
			count: 1
			path: modules/workspaces/tests/src/Kernel/WorkspaceAccessTest.php

		-
			message: "#^Variable \\$keyed_content might not be defined\\.$#"
			count: 1
@@ -2840,11 +2830,6 @@ parameters:
			count: 1
			path: tests/Drupal/Tests/Component/Plugin/Factory/ReflectionFactoryTest.php

		-
			message: "#^@coversDefaultClass defined on class method testHtmlClass\\.$#"
			count: 1
			path: tests/Drupal/Tests/Component/Utility/HtmlTest.php

		-
			message: "#^Result of static method Drupal\\\\Composer\\\\Composer\\:\\:ensureComposerVersion\\(\\) \\(void\\) is used\\.$#"
			count: 1
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ public function providerTestCleanCssIdentifier() {
  /**
   * Tests that Html::getClass() cleans the class name properly.
   *
   * @coversDefaultClass ::getClass
   * @covers ::getClass
   */
  public function testHtmlClass() {
    // Verify Drupal coding standards are enforced.