Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. #1120

Open
kedarkhaire opened this issue Jan 21, 2025 · 0 comments
Assignees
Labels
bug Something isn't working Drupal 11 enhancement New feature or request

Comments

@kedarkhaire
Copy link
Collaborator

Is your request related to a problem? Please describe.

PHPUnit test throws the following error - Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container.

This issue appears on following files

  1. Drupal\Tests\apigee_edge_actions\Kernel\Plugin\RulesEvent\EdgeEntityAddMemberEventTest::testEvent
  2. Drupal\Tests\apigee_edge_actions\Kernel\Plugin\RulesEvent\EdgeEntityAddProductEventTest::testEvent
  3. Drupal\Tests\apigee_edge_actions\Kernel\Plugin\RulesEvent\EdgeEntityRemoveMemberEventTest::testEvent
  4. Drupal\Tests\apigee_edge_actions\Kernel\Plugin\RulesEvent\EdgeEntityRemoveProductEventTest::testEvent
  5. Drupal\Tests\apigee_edge_teams\Kernel\Entity\TeamViewBuilderTest::testViewCacheExpiration
  6. Drupal\Tests\apigee_edge_teams\Kernel\EntityControllerCacheTest::testTeamEntityControllerCache
  7. Drupal\Tests\apigee_edge_teams\Kernel\TeamInvitationEventsTest::testEvents

Describe the solution you would like

@kedarkhaire kedarkhaire added this to the 4.0.0 milestone Jan 21, 2025
@kedarkhaire kedarkhaire self-assigned this Jan 21, 2025
@kedarkhaire kedarkhaire removed this from the 4.0.0 milestone Jan 21, 2025
@kedarkhaire kedarkhaire added bug Something isn't working enhancement New feature or request labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Drupal 11 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant