You are here

protected function EasyRdfConverterTest::testSchemaProperty in Schema.org configuration tool (RDF UI) 8

Tests that Schema.org properties are correctly loaded.

File

src/Tests/EasyRdfConverterTest.php, line 45

Class

EasyRdfConverterTest
Tests the Easy Rdf Converter Class & SchemaOrgConverter class.

Namespace

Drupal\rdfui\Tests

Code

protected function testSchemaProperty() {
  $properties = $this->graph
    ->getListProperties();
  $this
    ->assertTrue(in_array("name", $properties), 'Schema.Org properties loaded correctly');
  $this
    ->assertTrue(in_array("url", $properties), 'Schema.Org properties loaded correctly');
  $this
    ->assertTrue(in_array("image", $properties), 'Schema.Org properties loaded correctly');
  $this
    ->assertFalse(in_array("Person", $properties), 'Types are not in the list of Properties');
}