You are here

feedback_simple.test in Feedback Simple 7

Test file.

File

feedback_simple.test
View source
<?php

/**
 * @file
 * Test file.
 */

/**
 * Functional tests.
 */
class FeedbackSimpleTestCase extends DrupalWebTestCase {
  public static function getInfo() {
    return array(
      'name' => 'Feedback Simple',
      'description' => 'Tests if the Feedback Simple tab is enabled.',
      'group' => 'Feedback Simple',
    );
  }
  public function setUp() {
    parent::setUp('feedback_simple');
    $web_user = $this
      ->drupalCreateUser(array(
      'access content',
      'view feedback simple',
    ));
    $this
      ->drupalLogin($web_user);
  }
  public function testFeedbackSimple() {
    $this
      ->drupalGet('<front>');
    $this
      ->assertRaw("<div id='feedback_simple'>", 'The Feedback Simple tab is present.');
  }

}

Classes

Namesort descending Description
FeedbackSimpleTestCase Functional tests.