Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
m1r1k CreditAttribution: m1r1k commentedHere is a patch:
Comment #3
m1r1k CreditAttribution: m1r1k commentedFix the problems. Also change using local variable to object property
Comment #5
m1r1k CreditAttribution: m1r1k commentedRevert changing method arguments
Comment #6
m1r1k CreditAttribution: m1r1k commentedComment #16
quietone CreditAttribution: quietone as a volunteer commentedTriaging issues in simpletest.module to determine if they should be in the Simpletest Project or core.
This looks like it a Phpunit issue, changing component.