diff --git a/modules/dcat_demo/tests/src/Functional/DcatDemoTest.php b/modules/dcat_demo/tests/src/Functional/DcatDemoTest.php new file mode 100644 index 00000000..ae833431 --- /dev/null +++ b/modules/dcat_demo/tests/src/Functional/DcatDemoTest.php @@ -0,0 +1,63 @@ +setUpSparql(); + parent::setUp(); + } + + /** + * {@inheritdoc} + */ + public function test() { + $query = <<sparql->query($query); + print $response->count(); + foreach ($response as $row) { + print_r($row->Concept->getUri() . "\n"); + } + } + + /** + * {@inheritdoc} + */ + protected function getSparqlConnectionInfo(): array { + if (!isset($this->sparqlConnectionInfo)) { + $this->getSparqlConnectionInfoTrait(); + $this->sparqlConnectionInfo['host'] = 'data.europa.eu'; + $this->sparqlConnectionInfo['port'] = 80; + $this->sparqlConnectionInfo['database'] = 'euodp/sparqlep'; + } + return $this->sparqlConnectionInfo; + } + +}