function LinkReplyTest::setUp
Same name in other branches
- 10 core/modules/comment/tests/src/Unit/Plugin/views/field/LinkReplyTest.php \Drupal\Tests\comment\Unit\Plugin\views\field\LinkReplyTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ comment/ tests/ src/ Unit/ Plugin/ views/ field/ LinkReplyTest.php, line 30
Class
- LinkReplyTest
- @coversDefaultClass \Drupal\comment\Plugin\views\field\LinkReply @group comment
Namespace
Drupal\Tests\comment\Unit\Plugin\views\fieldCode
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.