You are here

protected function LayoutRestTestBase::assertResponseWhenMissingAuthentication in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php \Drupal\Tests\layout_builder\Functional\Rest\LayoutRestTestBase::assertResponseWhenMissingAuthentication()
  2. 9 core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php \Drupal\Tests\layout_builder\Functional\Rest\LayoutRestTestBase::assertResponseWhenMissingAuthentication()

Verifies the error response in case of missing authentication.

Parameters

string $method: HTTP method.

\Psr\Http\Message\ResponseInterface $response: The response to assert.

Overrides BasicAuthResourceTestTrait::assertResponseWhenMissingAuthentication

File

core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php, line 115

Class

LayoutRestTestBase
Base class for Layout Builder REST tests.

Namespace

Drupal\Tests\layout_builder\Functional\Rest

Code

protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) {
}