92c92 < index 5bdee72..b2990d9 100644 --- > index 100c19c..cd2257d 100644 232c232 < index 335cdee..8fa25e3 100644 --- > index 7e20010..a07684c 100644 288c288 < index 27dbf17..d2ac432 100644 --- > index 5bad9ea..3503db3 100644 301c301 < index 8c7a8eb..6123825 100644 --- > index 4f11307..8baa839 100644 351c351 < index bfabb3e..e1e937d 100644 --- > index 3572475..b9900a1 100644 361c361 < $tests['[comment:author:name]'] = check_plain($this->admin_user->name); --- > $tests['[comment:author:name]'] = check_plain($this->admin_user->getUsername()); 362a363,371 > @@ -87,7 +87,7 @@ function testCommentTokenReplacement() { > $tests['[comment:title]'] = $comment->subject->value; > $tests['[comment:body]'] = $comment->comment_body->value; > $tests['[comment:parent:title]'] = $parent_comment->subject->value; > - $tests['[comment:node:title]'] = $node->title; > + $tests['[comment:node:title]'] = $node->label(); > $tests['[comment:author:name]'] = $this->admin_user->getUsername(); > > foreach ($tests as $input => $expected) { 467c476 < index d0d0ab8..d2107e9 100644 --- > index d0d0ab8..35c2838 100644 547a557,605 > @@ -1108,7 +1108,7 @@ function template_preprocess_forum_topic_list(&$variables) { > '#new_posts' => $topic->new, > '#num_posts' => $topic->comment_count, > '#comment_mode' => $topic->comment_mode, > - '#sticky' => $topic->sticky, > + '#sticky' => $topic->isSticky(), > '#first_new' => $topic->first_new, > ); > $variables['topics'][$id]->zebra = $row % 2 == 0 ? 'odd' : 'even'; > @@ -1119,12 +1119,12 @@ function template_preprocess_forum_topic_list(&$variables) { > // them is a shadow copy. > if ($variables['tid'] != $topic->forum_tid) { > $variables['topics'][$id]->moved = TRUE; > - $variables['topics'][$id]->title = check_plain($topic->title); > + $variables['topics'][$id]->title = check_plain($topic->label()); > $variables['topics'][$id]->message = l(t('This topic has been moved'), "forum/$topic->forum_tid"); > } > else { > $variables['topics'][$id]->moved = FALSE; > - $variables['topics'][$id]->title = l($topic->title, 'node/' . $topic->id()); > + $variables['topics'][$id]->title = l($topic->label(), 'node/' . $topic->id()); > $variables['topics'][$id]->message = ''; > } > $variables['topics'][$id]->created = theme('forum_submitted', array('topic' => $topic)); > diff --git a/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php b/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php > index 1491ce2..c2abdf5 100644 > --- a/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php > +++ b/core/modules/forum/lib/Drupal/forum/Tests/ForumNodeAccessTest.php > @@ -82,16 +82,16 @@ function testForumNodeAccess() { > $this->drupalGet(''); > > // Ensure private node and public node are found. > - $this->assertText($private_node->title, 'Private node found in block by $access_user'); > - $this->assertText($public_node->title, 'Public node found in block by $access_user'); > + $this->assertText($private_node->label(), 'Private node found in block by $access_user'); > + $this->assertText($public_node->label(), 'Public node found in block by $access_user'); > > // Test for $no_access_user. > $this->drupalLogin($no_access_user); > $this->drupalGet(''); > > // Ensure private node is not found but public is found. > - $this->assertNoText($private_node->title, 'Private node not found in block by $no_access_user'); > - $this->assertText($public_node->title, 'Public node found in block by $no_access_user'); > + $this->assertNoText($private_node->label(), 'Private node not found in block by $no_access_user'); > + $this->assertText($public_node->label(), 'Public node found in block by $no_access_user'); > } > > } 1378c1436 < index 4523083..68c00dc 100644 --- > index b9243b2..43704b0 100644 1438c1496 < $edit['name'] = $this->web_user->name; --- > $edit['name'] = $this->web_user->getUsername(); 1553c1611 < index 5e57dda..99504ff 100644 --- > index 2166391..07c5834 100644 1683c1741 < index de16e50..eafbe9c 100644 --- > index e66e10c..162a5b9 100644 1718c1776 < $node->name = $user->name; --- > $node->name = $user->getUsername(); 2226c2284 < index 23f47d6..6a4b965 100644 --- > index 085a9c1..01db0b6 100644 2299c2357 < index c70cf9d..cce84e7 100644 --- > index f8a2177..9409630 100644 2374c2432 < index 1187455..f67fe3c 100644 --- > index ad966e2..fb7aae7 100644 2377,2380c2435,2439 < @@ -72,6 +72,6 @@ public function testSameTypes() { < // converters: < // parent: 'node' < $this->drupalGet("paramconverter_test/node/" . $node->id() . "/set/parent/" . $parent->id()); --- > @@ -68,7 +68,7 @@ public function testSameTypes() { > $parent = $this->drupalCreateNode(array('title' => $this->randomName(8))); > // paramconverter_test/node/{node}/set/parent/{parent} > // options.parameters.parent.type = entity:node > - $this->drupalGet("paramconverter_test/node/" . $node->nid . "/set/parent/" . $parent->nid); 2381a2441 > + $this->drupalGet("paramconverter_test/node/" . $node->id() . "/set/parent/" . $parent->id()); 2403c2463 < index 24dbb26..af5417e 100644 --- > index 742ec0f..af5b366 100644 2412c2472 < $target .= check_plain($account->name); --- > $target .= check_plain($account->getUsername()); 2415c2475 < $target .= check_plain($user->name); --- > $target .= check_plain($user->getUsername()); 2462c2522 < index d395462..3763b18 100644 --- > index 6a9190b..74ec1cb 100644 2929c2989 < index 9abdab2..6a4eb8b 100644 --- > index 42c2f7f..e4d5c6b 100644 2962c3022 < $this->assertRaw(t('%name has been disabled.', array('%name' => $account->name)), "Confirmation message displayed to user."); --- > $this->assertRaw(t('%name has been disabled.', array('%name' => $account->getUsername())), "Confirmation message displayed to user."); 2986c3046 < $this->assertRaw(t('%name has been deleted.', array('%name' => $account->name)), "Confirmation message displayed to user."); --- > $this->assertRaw(t('%name has been deleted.', array('%name' => $account->getUsername())), "Confirmation message displayed to user."); 2997c3057 < index 924b221..46c5154 100644 --- > index 6380387..53aac22 100644 3018c3078 < @@ -1980,7 +1980,7 @@ function user_node_load($nodes, $types) { --- > @@ -1977,7 +1977,7 @@ function user_node_load($nodes, $types) { 3081c3141 < index f77eb69..51e0bfc 100644 --- > index 3dc83ac..62e19cd 100644