You are here

public function LingotekContentTypeBulkTranslationTest::testNotSpecifiedLanguageConfigEntityInBulkManagement in Lingotek Translation 3.2.x

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

Tests that no config entity is uploaded or listed if has not specified language.

File

tests/src/Functional/LingotekContentTypeBulkTranslationTest.php, line 1671

Class

LingotekContentTypeBulkTranslationTest
Tests translating a config entity using the bulk management form.

Namespace

Drupal\Tests\lingotek\Functional

Code

public function testNotSpecifiedLanguageConfigEntityInBulkManagement() {
  $this
    ->drupalCreateContentType([
    'type' => 'und_language_content_type',
    'name' => 'Not specified language content type',
    'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
  ]);
  $this
    ->goToConfigBulkManagementForm('node_type');

  // Nothing was uploaded even with automatic profile, and nothing is listed
  // for upload.
  $this
    ->assertNull(\Drupal::state()
    ->get('lingotek.uploaded_title'));
  $this
    ->assertNoText('Not specified language content type');
  $this
    ->assertText('Article content type');
}