function RevisionLinkTest::setUp

Same name in other branches
  1. 11.x core/modules/node/tests/src/Unit/Plugin/views/field/RevisionLinkTest.php \Drupal\Tests\node\Unit\Plugin\views\field\RevisionLinkTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/node/tests/src/Unit/Plugin/views/field/RevisionLinkTest.php, line 30

Class

RevisionLinkTest
@coversDefaultClass \Drupal\node\Plugin\views\field\RevisionLink @group node

Namespace

Drupal\Tests\node\Unit\Plugin\views\field

Code

protected function setUp() : void {
    parent::setUp();
    $this->setUpMockLoggerWithMissingEntity();
    $container = \Drupal::getContainer();
    $container->set('string_translation', $this->createMock(TranslationInterface::class));
    \Drupal::setContainer($container);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.