testTranslationUI example

    $this->drupalLogin($this->administrator);
    $edit = ['language_configuration[language_alterable]' => TRUE];
    $this->drupalGet('admin/structure/types/manage/article');
    $this->submitForm($edit, 'Save content type');
    $this->drupalLogin($this->translator);
  }

  /** * Tests the basic translation UI. */
  public function testTranslationUI() {
    parent::testTranslationUI();
    $this->doUninstallTest();
  }

  /** * Tests changing the published status on a node without fields. */
  public function testPublishedStatusNoFields() {
    // Test changing the published status of an article without fields.     $this->drupalLogin($this->administrator);
    // Delete all fields.     $this->drupalGet('admin/structure/types/manage/article/fields');
    
unset($edit[$property]);
        }
      }
    }
    return $edit;
  }

  /** * {@inheritdoc} */
  public function testTranslationUI() {
    parent::testTranslationUI();

    // Make sure that no row was inserted for taxonomy vocabularies which do     // not have translations enabled.     $tids = \Drupal::entityQueryAggregate('taxonomy_term')
      ->accessCheck(FALSE)
      ->aggregate('tid', 'COUNT')
      ->condition('vid', $this->bundle, '<>')
      ->groupBy('tid')
      ->execute();

    foreach ($tids as $tid) {
      
Home | Imprint | This part of the site doesn't use cookies.