diff --git a/core/modules/field_ui/src/Tests/ManageFieldsTest.php b/core/modules/field_ui/src/Tests/ManageFieldsTest.php index 0a82925..2b26d11 100644 --- a/core/modules/field_ui/src/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/src/Tests/ManageFieldsTest.php @@ -375,7 +375,7 @@ function testDeleteField() { // Create an additional node type. $type_name2 = strtolower($this->randomMachineName(8)) . '_test'; $type2 = $this->drupalCreateContentType(array('name' => $type_name2, 'type' => $type_name2)); - $type_name2 = $type2->type; + $type_name2 = $type2->id(); // Add a field to the second node type. $bundle_path2 = 'admin/structure/types/manage/' . $type_name2; diff --git a/core/modules/node/src/Tests/NodeTypeRenameConfigImportTest.php b/core/modules/node/src/Tests/NodeTypeRenameConfigImportTest.php index 3801d1a..274383a 100644 --- a/core/modules/node/src/Tests/NodeTypeRenameConfigImportTest.php +++ b/core/modules/node/src/Tests/NodeTypeRenameConfigImportTest.php @@ -127,7 +127,7 @@ public function testConfigurationRename() { $this->assertFalse(entity_load('node_type', $active_type), 'The content no longer exists with the old name.'); $content_type = entity_load('node_type', $staged_type); - $this->assertIdentical($staged_type, $content_type->type); + $this->assertIdentical($staged_type, $content_type->id()); // Ensure the base field override has been renamed and the value is correct. $node = entity_create('node', array('type' => $staged_type)); diff --git a/core/modules/node/src/Tests/Views/NodeIntegrationTest.php b/core/modules/node/src/Tests/Views/NodeIntegrationTest.php index faceda3..b4188b7 100644 --- a/core/modules/node/src/Tests/Views/NodeIntegrationTest.php +++ b/core/modules/node/src/Tests/Views/NodeIntegrationTest.php @@ -48,8 +48,8 @@ public function testNodeViewTypeArgument() { $this->assertNids($all_nids); foreach ($types as $type) { - $this->drupalGet("test-node-view/{$type->type}"); - $this->assertNids(array_keys($nodes[$type->type])); + $this->drupalGet("test-node-view/{$type->id()}"); + $this->assertNids(array_keys($nodes[$type->id()])); } }