You are here

public function Anonymouspublishingtest::apTestingActivation in Anonymous Publishing 7

Test A.6: Testing activation of node.

1 call to Anonymouspublishingtest::apTestingActivation()
Anonymouspublishingtest::testAnonymouspublishing in tests/anonymous_publishing.test
The main test function.

File

tests/anonymous_publishing.test, line 123

Class

Anonymouspublishingtest
Tests for the Anonymous Publishing modules.

Code

public function apTestingActivation($akey, $response) {
  $this
    ->drupalGet('/node/add/blog');
  $this
    ->createNode('blog', 'blogger@example.com');
  if (!empty($akey)) {
    $options['query'] = array(
      'akey' => $akey,
    );
  }
  else {
    $options = array();
  }
  $this
    ->drupalGet('/node/1/verify', $options);
  $this
    ->assertText($response, 'A.6: Testing activation of node. (' . $response . ')');
}