function RadioactivityNodeTestCase::testActions_authenticatedView in Radioactivity 6
File
- plugins/
radioactivity_node.test, line 72
Class
Code
function testActions_authenticatedView() {
$user = $this
->drupalCreateUser();
$this
->drupalLogin($user);
$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(11, $energy);
}