You are here

public function HtmlTitleViewsTest::testViewsRssStyle in HTML Title 8

Tests the output when the views style RSS is used.

File

tests/src/Functional/HtmlTitleViewsTest.php, line 152

Class

HtmlTitleViewsTest
Tests the HTML Title integration with Views.

Namespace

Drupal\Tests\html_title\Functional

Code

public function testViewsRssStyle() {
  $this
    ->drupalGet('rss.xml');
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->responseContains('<title>Test sup-tag</title>');
  $assert_session
    ->responseContains('<title>Test sup-tag, sub-tag and br-tag</title>');
  $assert_session
    ->responseContains('<title>Test sup-tag, sub-tag, br-tag and p-tag</title>');
  $assert_session
    ->responseContains('<title>Test p-tag</title>');
}