You are here

protected function LayoutRestTestBase::getDecodedContents in Layout Builder Symmetric Translations 8

Gets the decoded contents.

Parameters

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

Return value

array The decoded contents.

1 call to LayoutRestTestBase::getDecodedContents()
OverrideSectionsTest::testOverrideField in tests/src/Functional/Rest/OverrideSectionsTest.php
Tests that the layout override field is not normalized.

File

tests/src/Functional/Rest/LayoutRestTestBase.php, line 150

Class

LayoutRestTestBase
Base class for Layout Builder REST tests.

Namespace

Drupal\Tests\layout_builder_st\Functional\Rest

Code

protected function getDecodedContents(ResponseInterface $response) {
  return $this->serializer
    ->decode((string) $response
    ->getBody(), static::$format);
}