diff -u b/core/modules/block/src/Tests/BlockTest.php b/core/modules/block/src/Tests/BlockTest.php --- b/core/modules/block/src/Tests/BlockTest.php +++ b/core/modules/block/src/Tests/BlockTest.php @@ -485,6 +485,9 @@ * Tests block_node_type_delete. */ public function testBlockNodeTypeDelete() { + // Enable the node module. + \Drupal::moduleHandler()->install(['node']); + $node_type1 = $this->drupalCreateContentType(); $node_type2 = $this->drupalCreateContentType(); reverted: --- b/core/modules/block/src/Tests/BlockTestBase.php +++ a/core/modules/block/src/Tests/BlockTestBase.php @@ -19,7 +19,7 @@ * * @var array */ + public static $modules = array('block', 'filter', 'test_page_test', 'help', 'block_test'); - public static $modules = array('block', 'filter', 'test_page_test', 'help', 'block_test', 'node'); /** * A list of theme regions to test.