You are here

public function RdfTest::testRdf in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 tests/src/Functional/RdfTest.php \Drupal\Tests\ds\Functional\RdfTest::testRdf()

Test rdf integration.

File

tests/src/Functional/RdfTest.php, line 27

Class

RdfTest
Tests for Rdf integration.

Namespace

Drupal\Tests\ds\Functional

Code

public function testRdf() {
  \Drupal::service('module_installer')
    ->install([
    'ds_test_rdf',
  ]);

  /* @var \Drupal\node\NodeInterface $node */
  $node = $this
    ->entitiesTestSetup();

  // Look at node and verify the rdf tags are available.
  $this
    ->drupalGet('node/' . $node
    ->id());
  $this
    ->assertSession()
    ->responseContains('typeof="schema:Article');
}