You are here

public function AnswersBrandingTestCase::setUp in Answers 7.3

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

./answers.test, line 483
Tests for answers.module.

Class

AnswersBrandingTestCase
Tests the functionality of the answers module views.

Code

public function setUp() {
  parent::setUp('answers');
  variable_set('answers_question_create_button_text', 'Nointseuq Ruoy Ksa');
  variable_get('answers_question_edit_button_text', 'Nointseuq Ruoy Etadpu');
  variable_set('answers_trans_ucquestions', 'Snointseuq');
  variable_set('answers_trans_lcquestions', 'snointseuq');
  variable_set('answers_trans_ucquestion', 'Nointseuq');
  variable_set('answers_trans_lcquestion', 'nointseuq');
  variable_set('answers_answer_create_button_text', 'Rewsa Ruoy Tsop');
  variable_set('answers_answer_edit_button_text', 'Rewsa Ruoy Etadpu');
  variable_set('answers_trans_ucanswers', 'Srewsa');
  variable_set('answers_trans_lcanswers', 'srewsa');
  variable_set('answers_trans_ucanswer', 'Rewsa');
  variable_set('answers_trans_lcanswer', 'rewsa');
  answers_translation(TRUE);

  // cache_clear_all();
}