public function Pathautoi18nNodeTest::setUp in Pathauto i18n 7
SetUp method.
Overrides DrupalWebTestCase::setUp
File
- tests/
pathauto_i18n_node.test, line 27
Class
- Pathautoi18nNodeTest
- Test functionality for nodes.
Code
public function setUp() {
$modules[] = 'pathauto_i18n_node';
$this
->prepareTest($modules);
// Configure patterns for all language for easy testing.
$edit = array(
'pathauto_node_article_pattern' => 'all/[node:title]',
'pathauto_node_article_und_pattern' => 'neutral/[node:title]',
);
foreach ($this->availableLanguages as $language) {
$edit['pathauto_node_article_' . $language . '_pattern'] = $language . '/[node:title]';
}
$this
->drupalPost('admin/config/search/path/patterns', $edit, t('Save configuration'));
}