Verified Commit 2c641d8d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3439892 by SolimanHarkas, pradhumanjain2311, vensires: Fix Language...

Issue #3439892 by SolimanHarkas, pradhumanjain2311, vensires: Fix Language tests that rely on UID1's super user behavior
parent f1f27ff7
Loading
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -27,14 +27,6 @@ class LanguageConfigOverrideImportTest extends BrowserTestBase {
    'config_translation',
  ];

  /**
   * {@inheritdoc}
   *
   * @todo Remove and fix test to not rely on super user.
   * @see https://www.drupal.org/project/drupal/issues/3437620
   */
  protected bool $usesSuperUserAccessPolicy = TRUE;

  /**
   * {@inheritdoc}
   */
@@ -70,8 +62,9 @@ public function testConfigOverrideImport() {
    $this->assertEquals('FR default site name', $override->get('name'));
    $this->drupalGet('fr');
    $this->assertSession()->pageTextContains('FR default site name');

    $this->drupalLogin($this->rootUser);
    $this->drupalLogin($this->drupalCreateUser([
      'translate configuration',
    ]));
    $this->drupalGet('admin/config/development/maintenance/translate/fr/edit');
    $this->assertSession()->pageTextContains('FR message: @site is currently under maintenance. We should be back shortly. Thank you for your patience');
  }