public function UriTest::setUp in Feeds 8.3
Overrides FeedsUnitTestCase::setUp
File
- tests/
src/ Unit/ Element/ UriTest.php, line 20
Class
- UriTest
- @coversDefaultClass \Drupal\feeds\Element\Uri @group feeds
Namespace
Drupal\Tests\feeds\Unit\ElementCode
public function setUp() {
parent::setUp();
// Set a stub for the string translation service.
$container = new ContainerBuilder();
$container
->set('string_translation', $this
->getStringTranslationStub());
\Drupal::setContainer($container);
}