public function LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.0.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.1.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.2.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.3.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.4.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.5.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.6.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 3.7.x tests/src/Functional/LingotekContentTypeTranslationTest.php \Drupal\Tests\lingotek\Functional\LingotekContentTypeTranslationTest::testTranslatingFromUnexistingLocale()
- 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 644
Class
- LingotekContentTypeTranslationTest
- Tests translating a content type.
Namespace
Drupal\Tests\lingotek\FunctionalCode
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)');
}