You are here

public function AnswersUserPointsTestCase::testAnserConfigUserPointTranslation in Answers 7.4

Test !Points translation.

File

answers_userpoints/answers_userpoints.test, line 482
Tests for answers_userpoints.module.

Class

AnswersUserPointsTestCase
Tests the functionality of the answers_userpoints module admin settings.

Code

public function testAnserConfigUserPointTranslation() {
  variable_set(USERPOINTS_TRANS_UCPOINTS, 'TranslatedPoints');
  $this
    ->refreshVariables();
  $big_user = $this
    ->drupalCreateUser(array(
    'administer content types',
  ));
  $this
    ->drupalLogin($big_user);
  $this
    ->drupalGet('admin/config/content/answers');
  $this
    ->assertText(t('!Points settings', userpoints_translation()));
  $this
    ->assertText('TranslatedPoints settings');
}