diff --git a/core/modules/entity/src/Tests/EntityDisplayTest.php b/core/modules/entity/src/Tests/EntityDisplayTest.php index 0fcb81d..13c4fbd 100644 --- a/core/modules/entity/src/Tests/EntityDisplayTest.php +++ b/core/modules/entity/src/Tests/EntityDisplayTest.php @@ -289,10 +289,6 @@ public function testRenameDeleteBundle() { 'entity' => array('field.instance.node.article_rename.body', 'node.type.article_rename'), 'module' => array('text', 'user') ); - $expected_form_dependencies = array( - 'entity' => array('field.instance.node.article_rename.body', 'node.type.article_rename'), - 'module' => array('text') - ); // Check that the display has dependencies on the bundle, fields and the // modules that provide the formatters. $dependencies = $new_display->calculateDependencies(); @@ -301,6 +297,10 @@ public function testRenameDeleteBundle() { // Check that the form display has dependencies on the bundle, fields and // the modules that provide the formatters. $dependencies = $new_form_display->calculateDependencies(); + $expected_form_dependencies = array( + 'entity' => array('field.instance.node.article_rename.body', 'node.type.article_rename'), + 'module' => array('text') + ); $this->assertEqual($expected_form_dependencies, $dependencies); // Delete the bundle. diff --git a/core/modules/node/src/Controller/NodeController.php b/core/modules/node/src/Controller/NodeController.php index 3382c0b..2990324 100644 --- a/core/modules/node/src/Controller/NodeController.php +++ b/core/modules/node/src/Controller/NodeController.php @@ -91,11 +91,7 @@ public function addPage() { * A node submission form. */ public function add(NodeTypeInterface $node_type) { - $account = $this->currentUser(); - $node = $this->entityManager()->getStorage('node')->create(array( - 'uid' => $account->id(), - 'name' => $account->getUsername() ?: '', 'type' => $node_type->type, )); diff --git a/core/modules/node/src/Tests/PageEditTest.php b/core/modules/node/src/Tests/PageEditTest.php index 259ebbd..a014c80 100644 --- a/core/modules/node/src/Tests/PageEditTest.php +++ b/core/modules/node/src/Tests/PageEditTest.php @@ -113,8 +113,7 @@ function testPageAuthoredBy() { $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published')); $this->assertRaw(t('There are no entities matching "%name".', array('%name' => 'invalid-name'))); - // Change the authored by field to an empty string, which should assign - // authorship to the anonymous user (uid 0). + // Change the authored by field to the anonymous user (uid 0). $edit['uid[0][target_id]'] = 'Anonymous (0)'; $this->drupalPostForm('node/' . $node->id() . '/edit', $edit, t('Save and keep published')); $node = node_load($node->id(), TRUE); diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module index 95797f9..c6c6d1a 100644 --- a/core/modules/rdf/rdf.module +++ b/core/modules/rdf/rdf.module @@ -305,7 +305,7 @@ function rdf_preprocess_node(&$variables) { // Adds RDFa markup for the date. $created_mapping = $mapping->getPreparedFieldMapping('created'); if (!empty($created_mapping) && $variables['display_submitted']) { - $date_attributes = rdf_rdfa_attributes($created_mapping, $variables['node']->get('created')->first()->getValue()); + $date_attributes = rdf_rdfa_attributes($created_mapping, $variables['node']->get('created')->first()->toArray()); $rdf_metadata = array( '#theme' => 'rdf_metadata', '#metadata' => array($date_attributes),