GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/rdf/src/Tests/ |
Upload File : |
<?php namespace Drupal\rdf\Tests; use Drupal\simpletest\WebTestBase; /** * Confirm that the serialization of RDF namespaces in present in the HTML * markup. * * @group rdf */ class GetNamespacesTest extends WebTestBase { /** * Modules to enable. * * @var array */ public static $modules = ['rdf', 'rdf_test_namespaces']; /** * Tests RDF namespaces. */ public function testGetRdfNamespaces() { // Fetches the front page and extracts RDFa 1.1 prefixes. $this->drupalGet(''); $element = $this->xpath('//html[contains(@prefix, :prefix_binding)]', [ ':prefix_binding' => 'rdfs: http://www.w3.org/2000/01/rdf-schema#', ]); $this->assertTrue(!empty($element), 'A prefix declared once is displayed.'); $element = $this->xpath('//html[contains(@prefix, :prefix_binding)]', [ ':prefix_binding' => 'foaf: http://xmlns.com/foaf/0.1/', ]); $this->assertTrue(!empty($element), 'The same prefix declared in several implementations of hook_rdf_namespaces() is valid as long as all the namespaces are the same.'); $element = $this->xpath('//html[contains(@prefix, :prefix_binding)]', [ ':prefix_binding' => 'foaf1: http://xmlns.com/foaf/0.1/', ]); $this->assertTrue(!empty($element), 'Two prefixes can be assigned the same namespace.'); $element = $this->xpath('//html[contains(@prefix, :prefix_binding)]', [ ':prefix_binding' => 'dc: http://purl.org/dc/terms/', ]); $this->assertTrue(!empty($element), 'When a prefix has conflicting namespaces, the first declared one is used.'); } }