You are here

public function Pathautoi18nUserTest::setUp in Pathauto i18n 7

SetUp method.

Overrides DrupalWebTestCase::setUp

File

tests/pathauto_i18n_user.test, line 28

Class

Pathautoi18nUserTest
Test functionality for user.

Code

public function setUp() {
  $modules[] = 'pathauto_i18n_user';
  $this
    ->prepareTest($modules);

  // Configure patterns for all language for easy testing.
  $edit = array(
    'pathauto_user_pattern' => 'neutral/users/[user:name]',
  );
  foreach ($this->availableLanguages as $language) {
    $edit['pathauto_user_user_' . $language . '_pattern'] = $language . '/users/[user:name]';
  }
  $this
    ->drupalPost('admin/config/search/path/patterns', $edit, t('Save configuration'));
}