You are here

RdfTest.php in Display Suite 8.4

Same filename and directory in other branches
  1. 8.3 tests/src/Functional/RdfTest.php

File

tests/src/Functional/RdfTest.php
View source
<?php

namespace Drupal\Tests\ds\Functional;


/**
 * Tests for Rdf integration.
 *
 * @group ds
 */
class RdfTest extends TestBase {

  /**
   * Modules to install.
   *
   * @var array
   */
  public static $modules = [
    'node',
    'field_ui',
    'ds',
    'rdf',
  ];

  /**
   * Test rdf integration.
   */
  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');
  }

}

Classes

Namesort descending Description
RdfTest Tests for Rdf integration.