public function TermTranslationUITest::testTranslationUI

Overrides \Drupal\translation_entity\Tests\EntityTranslationUITest::testTranslationUI().

Overrides EntityTranslationUITest::testTranslationUI

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTranslationUITest.php, line 105
Definition of Drupal\taxonomy\Tests\TermTranslationUITest.

Class

TermTranslationUITest
Tests the Term Translation UI.

Namespace

Drupal\taxonomy\Tests

Code

public function testTranslationUI() {
  parent::testTranslationUI();

  // Make sure that no row was inserted for taxonomy vocabularies, which do
  // not have translations enabled.
  $rows = db_query('SELECT * FROM {translation_entity}')
    ->fetchAll();
  $this
    ->assertEqual(2, count($rows));
  $this
    ->assertEqual('taxonomy_term', $rows[0]->entity_type);
  $this
    ->assertEqual('taxonomy_term', $rows[1]->entity_type);
}