public function LingotekLocaleTest::testGenerateLingotek2Drupal in Lingotek Translation 3.7.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 4.0.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.0.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.1.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.2.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.3.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.4.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.5.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 3.6.x tests/src/Functional/LingotekLocaleTest.php \Drupal\Tests\lingotek\Functional\LingotekLocaleTest::testGenerateLingotek2Drupal()
- 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\FunctionalCode
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);
}