diff --git a/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php b/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php index c14964c..1e9bb43 100644 --- a/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php @@ -31,6 +31,7 @@ protected function setUp() { $cache_backend = $this->prophesize(CacheBackendInterface::class); $module_handler = $this->prophesize(ModuleHandlerInterface::class); $this->blockManager = new BlockManager(new \ArrayObject(), $cache_backend->reveal(), $module_handler->reveal()); + $this->blockManager->setStringTranslation($this->getStringTranslationStub()); $discovery = $this->prophesize(DiscoveryInterface::class); // Specify the 'broken' block, as well as 3 other blocks with admin labels