You are here

public function Feedsi18nTaxonomyTestCase::testAvailableProcessorLanguageSetting in Feeds 7.2

Tests if the language setting is available on the processor.

File

tests/feeds_i18n_taxonomy.test, line 75
Contains Feedsi18nTaxonomyTestCase.

Class

Feedsi18nTaxonomyTestCase
Tests importing terms in a language.

Code

public function testAvailableProcessorLanguageSetting() {

  // Check if the language setting is available when the i18n_taxonomy module is enabled.
  $this
    ->drupalGet('admin/structure/feeds/i18n/settings/FeedsTermProcessor');
  $this
    ->assertField('language', 'Language field is available on the term processor settings when the i18n_taxonomy module is enabled.');

  // Disable the i18n_taxonomy module and check if the language setting is no longer available.
  module_disable(array(
    'i18n_taxonomy',
  ));
  $this
    ->drupalGet('admin/structure/feeds/i18n/settings/FeedsTermProcessor');
  $this
    ->assertNoField('language', 'Language field is not available on the term processor settings when the i18n_taxonomy module is disabled.');
}