abstract class ConfigEntityResourceTestBase in Drupal 10
Same name in this branch
- 10 core/modules/jsonapi/tests/src/Functional/ConfigEntityResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ConfigEntityResourceTestBase
- 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
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\jsonapi\Functional\ResourceTestBase uses ContentModerationTestTrait, JsonApiRequestTestTrait, ResourceResponseTestTrait
- class \Drupal\Tests\jsonapi\Functional\ConfigEntityResourceTestBase
- class \Drupal\Tests\jsonapi\Functional\ResourceTestBase uses ContentModerationTestTrait, JsonApiRequestTestTrait, ResourceResponseTestTrait
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\FunctionalView 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();
}
}