diff --git a/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php b/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php index d54e30a..572a8a8 100644 --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumBlockTest.php @@ -168,7 +168,7 @@ protected function createForumTopics($count = 5) { "body[$langcode][0][value]" => $body, // Forum posts are ordered by timestamp, so force a unique timestamp by // adding the index. - 'date' => date('c', $timestamp + $index), + 'published_date' => date('c', $timestamp + $index), ); // Create the forum topic, preselecting the forum ID via a URL parameter. diff --git a/core/modules/system/lib/Drupal/system/Tests/System/DateTimeTest.php b/core/modules/system/lib/Drupal/system/Tests/System/DateTimeTest.php index dd462d5..7c65b0a 100644 --- a/core/modules/system/lib/Drupal/system/Tests/System/DateTimeTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/System/DateTimeTest.php @@ -51,11 +51,11 @@ function testTimeZoneHandling() { ->set('formats.medium.pattern.php', 'Y-m-d H:i:s O') ->save(); - // Create some nodes with different authored-on dates. + // Create some nodes with different published-on dates. $date1 = '2007-01-31 21:00:00 -1000'; $date2 = '2007-07-31 21:00:00 -1000'; - $node1 = $this->drupalCreateNode(array('created' => strtotime($date1), 'type' => 'article')); - $node2 = $this->drupalCreateNode(array('created' => strtotime($date2), 'type' => 'article')); + $node1 = $this->drupalCreateNode(array('published' => strtotime($date1), 'type' => 'article')); + $node2 = $this->drupalCreateNode(array('published' => strtotime($date2), 'type' => 'article')); // Confirm date format and time zone. $this->drupalGet("node/$node1->nid"); diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LegacyTest.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LegacyTest.php index b9898c6..c30dcb8 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LegacyTest.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LegacyTest.php @@ -36,12 +36,12 @@ function testTaxonomyLegacyNode() { $langcode = LANGUAGE_NOT_SPECIFIED; $edit = array(); $edit['title'] = $this->randomName(); - $edit['date'] = '1969-01-01 00:00:00 -0500'; + $edit['published_date'] = '1969-01-01 00:00:00 -0500'; $edit["body[$langcode][0][value]"] = $this->randomName(); $edit["field_tags[$langcode]"] = $this->randomName(); $this->drupalPost('node/add/article', $edit, t('Save and publish')); // Checks that the node has been saved. $node = $this->drupalGetNodeByTitle($edit['title']); - $this->assertEqual($node->created, strtotime($edit['date']), 'Legacy node was saved with the right date.'); + $this->assertEqual($node->published, strtotime($edit['published_date']), 'Legacy node was saved with the right date.'); } } diff --git a/core/modules/user/lib/Drupal/user/Tests/UserTimeZoneTest.php b/core/modules/user/lib/Drupal/user/Tests/UserTimeZoneTest.php index 8b77915..3ef12f1 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserTimeZoneTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserTimeZoneTest.php @@ -38,15 +38,15 @@ function testUserTimeZone() { $web_user = $this->drupalCreateUser(); $this->drupalLogin($web_user); - // Create some nodes with different authored-on dates. + // Create some nodes with different published-on dates. // Two dates in PST (winter time): $date1 = '2007-03-09 21:00:00 -0800'; $date2 = '2007-03-11 01:00:00 -0800'; // One date in PDT (summer time): $date3 = '2007-03-20 21:00:00 -0700'; - $node1 = $this->drupalCreateNode(array('created' => strtotime($date1), 'type' => 'article')); - $node2 = $this->drupalCreateNode(array('created' => strtotime($date2), 'type' => 'article')); - $node3 = $this->drupalCreateNode(array('created' => strtotime($date3), 'type' => 'article')); + $node1 = $this->drupalCreateNode(array('published' => strtotime($date1), 'type' => 'article')); + $node2 = $this->drupalCreateNode(array('published' => strtotime($date2), 'type' => 'article')); + $node3 = $this->drupalCreateNode(array('published' => strtotime($date3), 'type' => 'article')); // Confirm date format and time zone. $this->drupalGet("node/$node1->nid");