public function HtmlTitleViewsTest::testAdminContentOverviewUrlsRenderedInRowLanguage in HTML Title 8
Test that the the content view renders the node titles to row language.
File
- tests/
src/ Functional/ HtmlTitleViewsTest.php, line 141
Class
- HtmlTitleViewsTest
- Tests the HTML Title integration with Views.
Namespace
Drupal\Tests\html_title\FunctionalCode
public function testAdminContentOverviewUrlsRenderedInRowLanguage() {
$this
->drupalGet(Url::fromRoute('system.admin_content'));
// The nodes are order on last updated date. So the EN version is shown on
// the third place and the translated FR version on place 4.
$this
->assertSession()
->elementAttributeContains('css', 'table tr:nth-of-type(3) .views-field-title a', 'href', '/en/node/3');
$this
->assertSession()
->elementAttributeContains('css', 'table tr:nth-of-type(4) .views-field-title a', 'href', '/fr/node/3');
}