You are here

public function FakeTemplateWrapper::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php \Drupal\Tests\help_topics\Unit\FakeTemplateWrapper::__construct()

Constructor.

Parameters

string $body: Body text to return from the render() method.

File

core/modules/help_topics/tests/src/Unit/HelpTopicTwigTest.php, line 127

Class

FakeTemplateWrapper
Defines a fake template class to mock \Twig_TemplateWrapper.

Namespace

Drupal\Tests\help_topics\Unit

Code

public function __construct($body) {
  $this->body = $body;
}