diff options
Diffstat (limited to 'modules/rdf/tests')
-rw-r--r-- | modules/rdf/tests/rdf_test.install | 2 | ||||
-rw-r--r-- | modules/rdf/tests/rdf_test.module | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/modules/rdf/tests/rdf_test.install b/modules/rdf/tests/rdf_test.install index ba7086ddd..b5253f7f7 100644 --- a/modules/rdf/tests/rdf_test.install +++ b/modules/rdf/tests/rdf_test.install @@ -21,6 +21,6 @@ function rdf_test_install() { ); foreach ($rdf_mappings as $rdf_mapping) { - rdf_save_mapping($rdf_mapping); + rdf_mapping_save($rdf_mapping); } } diff --git a/modules/rdf/tests/rdf_test.module b/modules/rdf/tests/rdf_test.module index 72959705f..46144951b 100644 --- a/modules/rdf/tests/rdf_test.module +++ b/modules/rdf/tests/rdf_test.module @@ -3,16 +3,15 @@ /** * @file - * Dummy module implementing RDF related hooks to test API interaction with - * the RDF module. + * Test API interaction with the RDF module. */ /** - * Implementation of hook_rdf_mapping(). + * Implements hook_rdf_mapping(). */ function rdf_test_rdf_mapping() { return array( - 0 => array( + array( 'type' => 'test_entity', 'bundle' => 'test_bundle', 'mapping' => array( @@ -33,12 +32,12 @@ function rdf_test_rdf_mapping() { ), ), ), - 1 => array( + array( 'type' => 'node', 'bundle' => 'blog', 'mapping' => array( 'rdftype' => array('sioct:Weblog'), - ) + ), ), ); } |