Verified Commit 46a843d6 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3498158 by quietone, borisson_: Fix 'Drupal.Commenting.ClassComment.Missing' in core/tests

parent 49af37c9
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@
  <rule ref="Drupal.Commenting.ClassComment.Missing">
    <include-pattern>*/Functional/*</include-pattern>
    <include-pattern>*/tests/modules/*</include-pattern>
    <include-pattern>./core/tests/Drupal/Tests/Core/*</include-pattern>
  </rule>
  <rule ref="Drupal.Commenting.DataTypeNamespace"/>
  <rule ref="Drupal.Commenting.Deprecated"/>
+3 −0
Original line number Diff line number Diff line
@@ -973,6 +973,9 @@ public static function providerTestAllowedIfHasPermissions() {

}

/**
 * Stub class for testing AccessResult.
 */
class UncacheableTestAccessResult implements AccessResultInterface {

  /**
+3 −0
Original line number Diff line number Diff line
@@ -139,6 +139,9 @@ public function testAccessException(): void {

}

/**
 * Controller for testing custom access.
 */
class TestController {

  public function accessAllow() {
+3 −0
Original line number Diff line number Diff line
@@ -301,6 +301,9 @@ public function testJsAssetsOrder(): void {
  define('JS_DEFAULT', 0);
}

/**
 * Stub class with memory cache implementation for testing.
 */
class TestMemoryBackend extends MemoryBackend {

  public function getAllCids() {
+3 −0
Original line number Diff line number Diff line
@@ -55,4 +55,7 @@ public function testInvalidateTags(): void {

}

/**
 * Test interface for testing the cache tags validator.
 */
interface InvalidatingCacheBackendInterface extends CacheTagsInvalidatorInterface, CacheBackendInterface {}
Loading