Setup the test environment.
We use German as default test language. Due to hardcoded configurations in the locale_test module, the language can not be chosen randomly.
Overrides WebTestBase::setUp
function setUp() {
parent::setUp();
module_load_include('compare.inc', 'locale');
$admin_user = $this
->drupalCreateUser(array(
'administer site configuration',
'administer languages',
'access administration pages',
'translate interface',
));
$this
->drupalLogin($admin_user);
$this
->drupalPost('admin/config/regional/language/add', array(
'predefined_langcode' => 'de',
), t('Add language'));
}