function FeedbackTestCase::testFeedbackVisibility in Feedback 7.2
Test visibility settings.
File
- tests/
feedback.test, line 59 - Tests for Feedback module.
Class
- FeedbackTestCase
- Test basic Feedback functionality.
Code
function testFeedbackVisibility() {
$this
->drupalLogin($this->admin_user);
$this
->drupalGet('user');
$this
->assertRaw('<span class="feedback-link">' . t('Feedback') . '</span>', t('Feedback form shown.'));
$edit = array(
'feedback_excluded_paths' => 'user*',
);
$this
->drupalPost('admin/config/user-interface/feedback', $edit, t('Save configuration'));
$this
->drupalGet('user');
$this
->assertNoRaw('<span class="feedback-link">' . t('Feedback') . '</span>', t('Feedback form not shown.'));
}