You are here

protected function SimplesitemapTestBase::addLanguages in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/SimplesitemapTestBase.php \Drupal\Tests\simple_sitemap\Functional\SimplesitemapTestBase::addLanguages()
1 call to SimplesitemapTestBase::addLanguages()
SimplesitemapTest::testGenerationResume in tests/src/Functional/SimplesitemapTest.php
@dataProvider generationResumeProvider

File

tests/src/Functional/SimplesitemapTestBase.php, line 130

Class

SimplesitemapTestBase
Provides the base class for web tests for Simple sitemap.

Namespace

Drupal\Tests\simple_sitemap\Functional

Code

protected function addLanguages($langcodes = 'de') {
  foreach ((array) $langcodes as $langcode) {
    ConfigurableLanguage::createFromLangcode($langcode)
      ->save();
  }
}