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