protected function LayoutRestTestBase::assertResponseWhenMissingAuthentication in Drupal 10
Same name and namespace in other branches
- 8 core/modules/layout_builder/tests/src/Functional/Rest/LayoutRestTestBase.php \Drupal\Tests\layout_builder\Functional\Rest\LayoutRestTestBase::assertResponseWhenMissingAuthentication()
- 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\RestCode
protected function assertResponseWhenMissingAuthentication($method, ResponseInterface $response) {
}