You are here

public function DocumentElement::hasContent in Drupal 9

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/DocumentElement.php \Drupal\Tests\DocumentElement::hasContent()

Check whether document has specified content.

Parameters

string $content:

Return value

bool

File

core/tests/Drupal/Tests/DocumentElement.php, line 44

Class

DocumentElement
Document element.

Namespace

Drupal\Tests

Code

public function hasContent($content) {
  return $this
    ->has('named', [
    'content',
    $content,
  ]);
}