/** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::testTranslationUI(). */ 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 {content_translation}')->fetchAll(); foreach ($rows as $row) { $this->assertEqual('taxonomy_term', $row->entity_type, 'Row contains a taxonomy term.'); } }
/** * Overrides \Drupal\content_translation\Tests\ContentTranslationUITest::testTranslationUI(). */ 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 tid, count(tid) AS count FROM {taxonomy_term_field_data} WHERE vid <> :vid GROUP BY tid', array(':vid' => $this->bundle))->fetchAll(); foreach ($rows as $row) { $this->assertTrue($row->count < 2, 'Term does not have translations.'); } }
/** * Tests the basic translation UI. */ function testTranslationUI() { parent::testTranslationUI(); $this->doUninstallTest(); }