You are here

protected function HtmlTitleFilterTest::setUp in HTML Title 8

Overrides RendererTestBase::setUp

File

tests/src/Unit/HtmlTitleFilterTest.php, line 28

Class

HtmlTitleFilterTest
@coversDefaultClass \Drupal\html_title\HtmlTitleFilter

Namespace

Drupal\Tests\html_title\Unit

Code

protected function setUp() : void {
  parent::setUp();
  $config_factory = $this
    ->createMock(ConfigFactoryInterface::class);
  $config = $this
    ->createMock(Config::class);
  $config_factory
    ->method('get')
    ->willReturn($config);
  $config
    ->method('get')
    ->willReturn('<br> <sub> <sup>');
  $this->htmlTitleFilter = new HtmlTitleFilter($config_factory, $this->renderer);
}