public function Pathautoi18nTaxonomyTest::setUp in Pathauto i18n 8
SetUp method.
Overrides WebTestBase::setUp
File
- src/
Tests/ Pathautoi18nTaxonomyTest.php, line 29 - Tests for the pathauto_i18n taxonomy module.
Class
- Pathautoi18nTaxonomyTest
- Pathauto i18n test functionality for taxonomy.
Namespace
Drupal\pathauto_i18n\TestsCode
public function setUp() {
$this
->prepareTest();
// Configure patterns for all language for easy testing.
/*$edit = array(
'pathauto_taxonomy_term_pattern' => 'all/[term:name]',
'pathauto_taxonomy_term_tags_pattern' => 'neutral/[term:name]',
);
foreach ($this->availableLanguages as $language) {
$edit['pathauto_taxonomy_term_tags_' . $language . '_pattern'] = $language . '/[term:name]';
}
$this->drupalPost('admin/config/search/path/patterns', $edit, t('Save configuration'));*/
}