diff --git a/core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php b/core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php index 028ea73..bfdbdd2 100644 --- a/core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php +++ b/core/tests/Drupal/Tests/Core/Block/BlockBaseTest.php @@ -23,8 +23,9 @@ class BlockBaseTest extends UnitTestCase { * @see \Drupal\Core\Block\BlockBase::getMachineNameSuggestion(). */ public function testGetMachineNameSuggestion() { + $module_handler = $this->getMock('Drupal\Core\Extension\ModuleHandlerInterface'); $transliteration = $this->getMockBuilder('Drupal\Core\Transliteration\PHPTransliteration') - // @todo Inject the module handler into PHPTransliteration. + ->setConstructorArgs(array(NULL, $module_handler)) ->setMethods(array('readLanguageOverrides')) ->getMock();