You are here

protected function InlineBlockTest::assertNodeRevisionContent in Drupal 9

Assert the contents of a node revision.

Parameters

int $revision_id: The revision ID to assert.

array $content: The content items to assert on the page.

1 call to InlineBlockTest::assertNodeRevisionContent()
InlineBlockTest::testInlineBlocksRevisioningIntegrity in core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php
Tests entity blocks revisioning.

File

core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockTest.php, line 320

Class

InlineBlockTest
Tests that the inline block feature works correctly.

Namespace

Drupal\Tests\layout_builder\FunctionalJavascript

Code

protected function assertNodeRevisionContent($revision_id, array $content) {
  $this
    ->drupalGet("node/1/revisions/{$revision_id}/view");
  foreach ($content as $content_item) {
    $this
      ->assertSession()
      ->pageTextContains($content_item);
  }
}