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,8 +485,8 @@ * Tests block_node_type_delete. */ public function testBlockNodeTypeDelete() { - $node_type1 = $this->drupalCreateContentType(); - $node_type2 = $this->drupalCreateContentType(); + $node_type1 = $this->drupalCreateContentType(['type' => 'node_type1']); + $node_type2 = $this->drupalCreateContentType(['type' => 'node_type2']); $block = Block::create([ 'id' => $this->randomMachineName(),