public function Feedsi18nNodeTestCase::testAvailableProcessorLanguageSetting in Feeds 7.2
Tests if the language setting is available on the processor.
File
- tests/
feeds_i18n_node.test, line 67 - Contains Feedsi18nNodeTestCase.
Class
- Feedsi18nNodeTestCase
- Tests importing nodes in a language.
Code
public function testAvailableProcessorLanguageSetting() {
// Check if the language setting is available when the locale module is enabled.
$this
->drupalGet('admin/structure/feeds/i18n/settings/FeedsNodeProcessor');
$this
->assertField('language', 'Language field is available on the node processor settings when the locale module is enabled.');
// Disable the locale module and check if the language setting is no longer available.
module_disable(array(
'locale',
));
$this
->drupalGet('admin/structure/feeds/i18n/settings/FeedsNodeProcessor');
$this
->assertNoField('language', 'Language field is not available on the node processor settings when the locale module is disabled.');
}