Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295999

Do not override container with itself in DrupalUnitTestBase::containerBuild()

$
0
0

When we call DrupalUnitTestBase::setUp(), before $this->containerBuild(drupal_container()); we call parent::setUp();, that calls TestBase::prepareEnvironment(), that sets container into the test object - \Drupal::setContainer($this->container);. So DrupalUnitTestBase::containerBuild() makes some overheads.


Viewing all articles
Browse latest Browse all 295999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>