diff --git a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php index 324e70f..ea3d306 100644 --- a/core/modules/block/lib/Drupal/block/Tests/BlockTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/BlockTest.php @@ -172,7 +172,7 @@ public function testBlockThemeSelector() { * Test block display of theme titles. */ function testThemeName() { - module_enable(array('block_test')); + \Drupal::moduleHandler()->install(array('block_test')); // Explicitly set the default and admin themes. $theme = 'cat_mouse'; theme_enable(array($theme, 'seven', 'block_test_theme'));