Commit 75ecdf3c authored by catch's avatar catch
Browse files

Issue #3404106 by quietone, smustgrave, longwave: Fix test performance of...

Issue #3404106 by quietone, smustgrave, longwave: Fix test performance of \Drupal\Tests\config_translation\Functional\ConfigTranslationInstallTest

(cherry picked from commit 502552fc11a05c73a3d5abecea0ad0a09c811f43)
parent 562a13e2
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
namespace Drupal\Tests\config_translation\Functional;

use Drupal\FunctionalTests\Installer\InstallerTestBase;
use Drupal\Tests\node\Traits\ContentTypeCreationTrait;

/**
 * Installs the config translation module on a site installed in non english.
@@ -11,6 +12,8 @@
 */
class ConfigTranslationInstallTest extends InstallerTestBase {

  use ContentTypeCreationTrait;

  /**
   * {@inheritdoc}
   */
@@ -19,7 +22,7 @@ class ConfigTranslationInstallTest extends InstallerTestBase {
  /**
   * {@inheritdoc}
   */
  protected $profile = 'standard';
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
@@ -60,6 +63,9 @@ protected function getPo($langcode) {
  }

  public function testConfigTranslation() {
    \Drupal::service('module_installer')->install(['node', 'field_ui']);
    $this->createContentType(['type' => 'article']);

    $this->drupalGet('admin/config/regional/language/add');
    $this->submitForm(['predefined_langcode' => 'en'], 'Add custom language');
    $this->drupalGet('admin/config/regional/language/add');