You are here

protected function HeartbeatWebTestCase::configureStream in Heartbeat 6.4

Configure a stream to start off as the administer/webmaster would do.

2 calls to HeartbeatWebTestCase::configureStream()
HeartbeatCommentsTest::testHeartbeatComments in modules/heartbeat_comments/tests/heartbeatcomments.test
Tests if a heartbeat message is logged for an event.
HeartbeatFunctionalTest::testOlderActivity in tests/heartbeat.functional.test
Function to test the heartbeat older messages function. Since configuration is needed, grouping functionality is tested here as well.

File

tests/heartbeatwebtestcase.inc, line 41

Class

HeartbeatWebTestCase
Class HeartbeatAdminTools

Code

protected function configureStream($stream_name, $args) {
  if (!$this->templatesLoaded) {

    // Make sure message templates are imported. This should not be needed.
    $this
      ->drupalGet('admin/build/heartbeat');
    $this->templatesLoaded = TRUE;
  }

  // Test the configuration form for private heartbeat.
  $this
    ->drupalPost('admin/build/heartbeat/stream/' . $stream_name, $args, t('Submit'));
}