You are here

public function FixtureTrait::fixtureHtmlPage in Mini site 8

Create a fixture HTML page.

Parameters

...: Arguments concatenated with '<br/>' and inserted into '<body>'.

Return value

string HTML5 string with added content.

1 call to FixtureTrait::fixtureHtmlPage()
MinisiteTestBase::getTestFilesStubValid in tests/src/Functional/MinisiteTestBase.php
Get valid test files stub.

File

tests/src/Traits/FixtureTrait.php, line 158

Class

FixtureTrait
Trait FixtureTrait.

Namespace

Drupal\Tests\minisite\Traits

Code

public function fixtureHtmlPage() {
  $content = implode('<br/>', func_get_args());
  $html = <<<HEREDOC
<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
{<span class="php-variable">$content</span>}
</body>
</html>
HEREDOC;
  return $html;
}