protected function provisionEntityResource($single_format = FALSE
) { if ($existing =
$this->resourceConfigStorage->
load(static::
$resourceConfigId)) { $existing->
delete();
} $format =
$single_format ?
[static::
$format] :
[static::
$format, 'foobar'
];
// It's possible to not have any authentication providers enabled, when
// testing public (anonymous) usage of a REST resource.
$auth =
isset(static::
$auth) ?
[static::
$auth] :
[];
$this->
provisionResource($format,
$auth);
} /**
* {@inheritdoc}
*/
protected function setUp(): void
{ parent::
setUp();
// Calculate REST Resource config entity ID.
static::
$resourceConfigId = 'entity.' .
static::
$entityTypeId;