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
Comment #2
ptmkenny commentedAdditional note:
I'm using drupal-extension 4.1.0 and drupal-driver 2.1.0.
Comment #3
ptmkenny commentedIssue upstream with Drupal extension: https://github.com/jhedstrom/drupalextension/issues/576
Comment #4
ptmkenny commentedSubcontext support has been removed upstream, so this is no longer relevant.