You are here

abstract class ConfigEntityResourceTestBase in Drupal 10

Same name in this branch
  1. 10 core/modules/jsonapi/tests/src/Functional/ConfigEntityResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ConfigEntityResourceTestBase
  2. 10 core/modules/rest/tests/src/Functional/EntityResource/ConfigEntityResourceTestBase.php \Drupal\Tests\rest\Functional\EntityResource\ConfigEntityResourceTestBase

Resource test base class for config entities.

@todo Remove this in https://www.drupal.org/node/2300677.

Hierarchy

Expanded class hierarchy of ConfigEntityResourceTestBase

1 file declares its use of ConfigEntityResourceTestBase
TestCoverageTest.php in core/modules/jsonapi/tests/src/Kernel/TestCoverageTest.php

File

core/modules/jsonapi/tests/src/Functional/ConfigEntityResourceTestBase.php, line 10

Namespace

Drupal\Tests\jsonapi\Functional
View source
abstract class ConfigEntityResourceTestBase extends ResourceTestBase {

  /**
   * A list of test methods to skip.
   *
   * @var array
   */
  const SKIP_METHODS = [
    'testRelated',
    'testRelationships',
    'testPostIndividual',
    'testPatchIndividual',
    'testDeleteIndividual',
    'testRevisions',
  ];

  /**
   * {@inheritdoc}
   */
  public function setUp() : void {
    if (in_array($this
      ->getName(), static::SKIP_METHODS, TRUE)) {

      // Skip before installing Drupal to prevent unnecessary use of resources.
      $this
        ->markTestSkipped("Not yet supported for config entities.");
    }
    parent::setUp();
  }

}

Members