Problem/Motivation

I'm getting an error when trying to use the behat extension provided by this module.

Steps to reproduce

1. Install the latest version of the module on Drupal 8.9.3.
2. Enable the module.
3. Add the subcontext to behat.yml as described in the README.
4. Add a step to a behat test. (And the time is "+1 hours")

The following error is displayed:

\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. (Drupal\Core\DependencyInjection\ContainerNotInitializedException)

╳ Fatal error: Call to a member function call() on null (Behat\Testwork\Call\Exception\FatalThrowableError)

└─ @AfterStep # FailAid\Context\FailureContext::gatherStateFactsAfterFailedStep()
╳ \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. (Drupal\Core\DependencyInjection\ContainerNotInitializedException)

└─ @AfterScenario # DatetimeTestingContext::resetTime()

Comments

ptmkenny created an issue. See original summary.

ptmkenny’s picture

Additional note:

I'm using drupal-extension 4.1.0 and drupal-driver 2.1.0.

ptmkenny’s picture

ptmkenny’s picture

Status: Active » Closed (outdated)

Subcontext support has been removed upstream, so this is no longer relevant.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.