You are here

public function LocaleLocaleLookupTest::testCircularDependency in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::testCircularDependency()
  2. 9 core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php \Drupal\Tests\locale\Functional\LocaleLocaleLookupTest::testCircularDependency()

Tests that there are no circular dependencies.

File

core/modules/locale/tests/src/Functional/LocaleLocaleLookupTest.php, line 44

Class

LocaleLocaleLookupTest
Tests LocaleLookup.

Namespace

Drupal\Tests\locale\Functional

Code

public function testCircularDependency() {

  // Ensure that we can enable early_translation_test on a non-english site.
  $this
    ->drupalGet('admin/modules');
  $this
    ->submitForm([
    'modules[early_translation_test][enable]' => TRUE,
  ], 'Install');
  $this
    ->assertSession()
    ->statusCodeEquals(200);
}