You are here

protected function MetadataBubblingUrlGeneratorTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php \Drupal\Tests\Core\Render\MetadataBubblingUrlGeneratorTest::setUp()

Overrides UrlGeneratorTest::setUp

File

core/tests/Drupal/Tests/Core/Render/MetadataBubblingUrlGeneratorTest.php, line 33
Contains \Drupal\Tests\Core\Render\MetadataBubblingUrlGeneratorTest.

Class

MetadataBubblingUrlGeneratorTest
Confirm that the MetadataBubblingUrlGenerator is functioning properly.

Namespace

Drupal\Tests\Core\Render

Code

protected function setUp() {
  parent::setUp();
  $this->renderer = $this
    ->getMock('\\Drupal\\Core\\Render\\RendererInterface');
  $this->renderer
    ->expects($this
    ->any())
    ->method('hasRenderContext')
    ->willReturn(TRUE);
  $this->generator = new MetadataBubblingUrlGenerator($this->generator, $this->renderer);
}