public function RdfTest::testRdf in Display Suite 8.2
Test rdf integration.
File
- src/
Tests/ RdfTest.php, line 27
Class
- RdfTest
- Tests for Rdf integration.
Namespace
Drupal\ds\TestsCode
public function testRdf() {
\Drupal::service('module_installer')
->install(array(
'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
->assertRaw('typeof="schema:Article', 'RDF tag found on the node wrapper');
}