You are here

public function LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale in Lingotek Translation 3.6.x

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

Test trying translating a config entity which language doesn't exist.

File

tests/src/Functional/LingotekContentTypeTranslationTest.php, line 646

Class

LingotekContentTypeTranslationTest
Tests translating a content type.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testTranslatingFromUnexistingLocale() {

  // Create a node type.
  $this
    ->drupalCreateContentType([
    'type' => 'aaa_test_content_type',
    'name' => 'AAA Test Content Type',
    'langcode' => 'nap',
  ]);
  $this
    ->drupalGet('/admin/config/regional/config-translation');
  $this
    ->drupalGet('/admin/config/regional/config-translation/node_type');
  $this
    ->clickLink('Translate');
  $this
    ->assertText('Translations for AAA Test Content Type content type');
  $this
    ->assertText('Unknown (nap) (original)');
}