Commit 12592a2e authored by webchick's avatar webchick

Issue #2183887 by tim.plunkett: Remove Drupal::setContainer from LocalActionDefaultTest.

parent fd06a6c0
......@@ -7,7 +7,6 @@
namespace Drupal\Tests\Core\Menu;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\Menu\LocalActionDefault;
use Drupal\Tests\UnitTestCase;
......@@ -81,11 +80,8 @@ protected function setUp() {
* Setups the local action default.
*/
protected function setupLocalActionDefault() {
$container = new ContainerBuilder();
$container->set('string_translation', $this->stringTranslation);
\Drupal::setContainer($container);
$this->localActionDefault = new LocalActionDefault($this->config, $this->pluginId, $this->pluginDefinition, $this->routeProvider);
$this->localActionDefault->setTranslationManager($this->stringTranslation);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment