Verified Commit 42372c26 authored by Dave Long's avatar Dave Long
Browse files

docs: #3517501 Fix 'DocComment.MissingShort' in KernelTest tests

By: quietone
By: annmarysruthy
By: xjm
By: dcam
(cherry picked from commit f6f59e12)
parent 4ebc3ee0
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@
    <exclude name="Drupal.Commenting.DocComment.LongFullStop"/>
  </rule>
  <rule  ref="Drupal.Commenting.DocComment.MissingShort">
    <include-pattern>core/*/KernelTests/*</include-pattern>
    <include-pattern>core/*/Unit/*</include-pattern>
    <include-pattern>core/*/FunctionalJavascript/*</include-pattern>
  </rule>
+4 −0
Original line number Diff line number Diff line
@@ -52,6 +52,8 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo
  }

  /**
   * Provides data for testFormattableMarkupUri().
   *
   * @return array
   *   Data provider for testFormattableMarkupUri().
   */
@@ -116,6 +118,8 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void {
  }

  /**
   * Provides data for testFormattableMarkupUriWithExceptionUri().
   *
   * @return array
   *   Data provider for testFormattableMarkupUriWithExceptionUri().
   */
+24 −0
Original line number Diff line number Diff line
@@ -29,6 +29,8 @@ class ConfigActionTest extends KernelTestBase {
  protected static $modules = ['config_test'];

  /**
   * Tests the behavior of the entity_create config action.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityCreate
   */
  public function testEntityCreate(): void {
@@ -55,6 +57,8 @@ public function testEntityCreate(): void {
  }

  /**
   * Tests the behavior of the entity_method config action.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod
   */
  public function testEntityMethod(): void {
@@ -167,6 +171,8 @@ public function testEntityMethod(): void {
  }

  /**
   * Tests pluralized method config actions on configuration entities.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod
   */
  public function testPluralizedEntityMethod(): void {
@@ -208,6 +214,8 @@ public function testPluralizedEntityMethod(): void {
  }

  /**
   * Tests exception thrown when applying an action to multiple calls.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod
   */
  public function testPluralizedEntityMethodException(): void {
@@ -220,6 +228,8 @@ public function testPluralizedEntityMethodException(): void {
  }

  /**
   * Tests exception thrown for duplicate pluralized method action definitions.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver
   */
  public function testDuplicatePluralizedMethodNameException(): void {
@@ -234,6 +244,8 @@ public function testDuplicatePluralizedMethodNameException(): void {
  }

  /**
   * Tests exception when creating a duplicate derivative.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\Deriver\EntityMethodDeriver
   */
  public function testDuplicatePluralizedOtherMethodNameException(): void {
@@ -248,6 +260,8 @@ public function testDuplicatePluralizedOtherMethodNameException(): void {
  }

  /**
   * Tests exception thrown when entity method action has an invalid argument.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\EntityMethod
   */
  public function testEntityMethodException(): void {
@@ -260,6 +274,8 @@ public function testEntityMethodException(): void {
  }

  /**
   * Tests the simple config update action and related exceptions.
   *
   * @see \Drupal\Core\Config\Action\Plugin\ConfigAction\SimpleConfigUpdate
   */
  public function testSimpleConfigUpdate(): void {
@@ -291,6 +307,8 @@ public function testSimpleConfigUpdate(): void {
  }

  /**
   * Tests shorthand action IDs for a configuration entity.
   *
   * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType()
   */
  public function testShorthandActionIds(): void {
@@ -316,6 +334,8 @@ public function testShorthandActionIds(): void {
  }

  /**
   * Tests that duplicate shorthand action IDs throw an exception.
   *
   * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType()
   */
  public function testDuplicateShorthandActionIds(): void {
@@ -328,6 +348,8 @@ public function testDuplicateShorthandActionIds(): void {
  }

  /**
   * Tests that parent attributes are properly discovered.
   *
   * @see \Drupal\Core\Config\Action\ConfigActionManager::getShorthandActionIdsForEntityType()
   */
  public function testParentAttributes(): void {
@@ -338,6 +360,8 @@ public function testParentAttributes(): void {
  }

  /**
   * Tests that an exception is thrown when an action does not exist.
   *
   * @see \Drupal\Core\Config\Action\ConfigActionManager
   */
  public function testMissingAction(): void {
+4 −0
Original line number Diff line number Diff line
@@ -21,11 +21,15 @@
abstract class ConfigStorageTestBase extends KernelTestBase {

  /**
   * The configuration storage.
   *
   * @var \Drupal\Core\Config\StorageInterface
   */
  protected $storage;

  /**
   * An invalid configuration storage.
   *
   * @var \Drupal\Core\Config\StorageInterface
   */
  protected $invalidStorage;
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@
class EntityDuplicateTest extends EntityKernelTestBase {

  /**
   * The entity storage.
   *
   * @var \Drupal\Core\Entity\ContentEntityStorageInterface
   */
  protected $entityTestRevStorage;
Loading