You are here

protected function StandardProfileTest::getRdfGraph in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/rdf/src/Tests/StandardProfileTest.php \Drupal\rdf\Tests\StandardProfileTest::getRdfGraph()

Get the EasyRdf_Graph object for a page.

Parameters

\Drupal\Core\Url $url: The URL object for the page.

Return value

\EasyRdf_Graph The RDF graph object.

5 calls to StandardProfileTest::getRdfGraph()
StandardProfileTest::doArticleRdfaTests in core/modules/rdf/src/Tests/StandardProfileTest.php
Tests that article data is exposed using RDFa.
StandardProfileTest::doFrontPageRdfaTests in core/modules/rdf/src/Tests/StandardProfileTest.php
Tests that data is exposed in the front page teasers.
StandardProfileTest::doPageRdfaTests in core/modules/rdf/src/Tests/StandardProfileTest.php
Tests that page data is exposed using RDFa.
StandardProfileTest::doTermRdfaTests in core/modules/rdf/src/Tests/StandardProfileTest.php
Tests that term data is exposed on term page.
StandardProfileTest::doUserRdfaTests in core/modules/rdf/src/Tests/StandardProfileTest.php
Tests that user data is exposed on user page.

File

core/modules/rdf/src/Tests/StandardProfileTest.php, line 532
Contains \Drupal\rdf\Tests\StandardProfileTest.

Class

StandardProfileTest
Tests the RDF mappings and RDFa markup of the standard profile.

Namespace

Drupal\rdf\Tests

Code

protected function getRdfGraph(Url $url) {
  $parser = new \EasyRdf_Parser_Rdfa();
  $graph = new \EasyRdf_Graph();
  $parser
    ->parse($graph, $this
    ->drupalGet($url), 'rdfa', $this->baseUri);
  return $graph;
}