Skip to content
Snippets Groups Projects
Commit 5b473f1c authored by catch's avatar catch
Browse files

Issue #3385844 by pooja_sharma, joachim: RouteCachingLanguageTest should use API to set up language

(cherry picked from commit ae99debe)
parent 6cf07f9a
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Pipeline #256341 passed with warnings
Pipeline: drupal

#256367

    Pipeline: drupal

    #256361

      Pipeline: drupal

      #256360

        +1
        ......@@ -108,12 +108,12 @@ protected function setUp(): void {
        // Enable URL language detection and selection and set a prefix for both
        // languages.
        $edit = ['language_interface[enabled][language-url]' => 1];
        $this->drupalGet('admin/config/regional/language/detection');
        $this->submitForm($edit, 'Save settings');
        $edit = ['prefix[en]' => 'en'];
        $this->drupalGet('admin/config/regional/language/detection/url');
        $this->submitForm($edit, 'Save configuration');
        \Drupal::configFactory()->getEditable('language.types')
        ->set('negotiation.language_interface.enabled.language_url', 1)
        ->save();
        \Drupal::configFactory()->getEditable('language.negotiation')
        ->set('url.prefixes.en', 'en')
        ->save();
        // Reset the cache after changing the negotiation settings as that changes
        // how links are built.
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment