You are here

public function EntityResourceTest::patchIndividualConfigFailedProvider 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::patchIndividualConfigFailedProvider()

Provides data for the testPatchIndividualFailedConfig.

Return value

array The input data for the test function.

File

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

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 patchIndividualConfigFailedProvider() {
  return [
    [
      [
        'type' => 'article',
        'status' => FALSE,
      ],
      "The machine name of the 'Content type' bundle cannot be changed.",
    ],
  ];
}