//Check that the basic forum install creates a default forum topic
$this->drupalGet('/forum');
// Look for the "General discussion" default forum
$this->assertRaw(t('<a href="'.Url::fromRoute('forum.page',['taxonomy_term'=>1]).'">General discussion</a>'),"Found the default forum at the /forum listing");
$this->assertRaw(t('<a href="'.Url::fromRoute('forum.page',['taxonomy_term'=>1])->toString().'">General discussion</a>'),"Found the default forum at the /forum listing");
$this->assert(isset($links[0]),format_string('The %langcode node translation has the correct alternate hreflang link for %alternate_langcode: %link.',array('%langcode'=>$langcode,'%alternate_langcode'=>$alternate_langcode,'%link'=>$url)));
$this->assert(isset($links[0]),format_string('The %langcode node translation has the correct alternate hreflang link for %alternate_langcode: %link.',array('%langcode'=>$langcode,'%alternate_langcode'=>$alternate_langcode,'%link'=>$url->toString())));
'#description'=>$this->t('The text to display for this field. You may include HTML or <a href="@url">Twig</a>. You may enter data from this view as per the "Replacement patterns" below.',array('@url'=>CoreUrl::fromUri('http://twig.sensiolabs.org/documentation'))),
'#description'=>$this->t('The text to display for this field. You may include HTML or <a href="@url">Twig</a>. You may enter data from this view as per the "Replacement patterns" below.',array('@url'=>CoreUrl::fromUri('http://twig.sensiolabs.org/documentation')->toString())),
$result=$this->xpath('//ul[contains(@class, dropbutton)]/li/a[contains(@href, :path) and text()=:title]',array(':path'=>$operation['url'].'?destination='.$expected_destination,':title'=>$operation['title']));
$result=$this->xpath('//ul[contains(@class, dropbutton)]/li/a[contains(@href, :path) and text()=:title]',array(':path'=>$operation['url']->toString().'?destination='.$expected_destination,':title'=>$operation['title']));
$this->assertEqual(count($result),1,t('Found entity @operation link with destination parameter.',array('@operation'=>$operation['title'])));