You are here

public function EntityResourceTest::testPatchIndividualFailedConfig in JSON:API Extras 8.3

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Controller/EntityResourceTest.php \Drupal\Tests\jsonapi_extras\Kernel\Controller\EntityResourceTest::testPatchIndividualFailedConfig()

@covers ::patchIndividual @dataProvider patchIndividualConfigFailedProvider

File

tests/src/Kernel/Controller/EntityResourceTest.php, line 185

Class

EntityResourceTest
@coversDefaultClass \Drupal\jsonapi\Controller\EntityResource @covers \Drupal\jsonapi_extras\Normalizer\ConfigEntityDenormalizer @group jsonapi_extras @group legacy

Namespace

Drupal\Tests\jsonapi_extras\Kernel\Controller

Code

public function testPatchIndividualFailedConfig($values, $expected_message) {
  $this
    ->expectException(ConfigException::class);
  $this
    ->expectExceptionMessage($expected_message);
  $this
    ->testPatchIndividualConfig($values);
}