Skip to content

Commit

Permalink
Add config.factory to the container
Browse files Browse the repository at this point in the history
  • Loading branch information
tregismoreira committed Nov 12, 2024
1 parent d0e0da6 commit 6df19e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ protected function setUp(): void {
// Mock Drupal's container.
$container = new ContainerBuilder();
$container->set('language_manager', $languageManagerMock->reveal());
$container->set('config.factory', $configFactoryMock->reveal());
\Drupal::setContainer($container);

// Prophesize the module handler and ensure `social_eda` is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ protected function setUp(): void {
// Mock Drupal's container.
$container = new ContainerBuilder();
$container->set('language_manager', $languageManagerMock->reveal());
$container->set('config.factory', $configFactoryMock->reveal());
\Drupal::setContainer($container);

// Prophesize the module handler and ensure `social_eda` is enabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ protected function setUp(): void {
// Set up Drupal's container.
$container = new ContainerBuilder();
$container->set('language_manager', $languageManagerMock->reveal());
$container->set('config.factory', $configFactoryMock->reveal());
\Drupal::setContainer($container);

// Prophesize the module handler and ensure `social_eda` is enabled.
Expand Down

0 comments on commit 6df19e2

Please sign in to comment.