Hello,

I run the following in a SimpleTest test case, and don't get any results:

rdf_insert("hello","world","123");
$q=rdf_query(null,"world",null);
$ra=$q->to_array();
drupal_set_message(print_r($ra,1));

response:

Array( )

Worse still, querying for $sitename, null, null doesn't yield any results either. This is probably an environment difference between inside and outside of SimpleTest test cases, but I don't know enough about how SimpleTest sets these things up to know how to fix it.

Any suggestions?

Comments

mgodfrey’s picture

Status: Active » Fixed

... and I just answered my own question. Forgot to explicitly install the rdf module in the class's the setUp() function:

 function setUp() { 
  parent::setUp('rdf');
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Arto’s picture

Assigned: Unassigned » Arto
Issue tags: +Simpletest