You are here

public function LingotekLocaleTest::testGenerateLingotek2Drupal in Lingotek Translation 3.7.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  2. 4.0.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  3. 3.0.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  4. 3.1.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  5. 3.2.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  6. 3.3.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  7. 3.4.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  8. 3.5.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  9. 3.6.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
  10. 3.8.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()

File

tests/src/Functional/LingotekLocaleTest.php, line 32

Class

LingotekLocaleTest
Tests LingotekLocale.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testGenerateLingotek2Drupal() {
  $language = LingotekLocale::generateLingotek2Drupal('es_ES');
  $this
    ->assertEqual('es', $language);
  $language = LingotekLocale::generateLingotek2Drupal('de-AT');
  $this
    ->assertEqual('de', $language);
  $language = LingotekLocale::generateLingotek2Drupal('ar');
  $this
    ->assertEqual('ar', $language);
}