function RadioactivityNodeTestCase::testActions_anonymousView in Radioactivity 6
File
- plugins/
radioactivity_node.test, line 62
Class
Code
function testActions_anonymousView() {
$node = $this
->drupalCreateNode(array());
$this
->drupalGet('node/' . $node->nid);
$dbresult = db_query("SELECT energy FROM {radioactivity} WHERE decay_profile=1 AND class='node' AND id=%d", $node->nid);
$energy = db_result($dbresult);
$this
->assertEqual(1, $energy);
}