Review main Merged

71517[BUGFIX] Initialize language object in SlugServiceTest

Stefan Bürk CR +2 V +2 Easy +2 −0 updated 10/11/21, 11:32

Commit message

Tests in SlugServiceTest from ext:redirects depend on
an initialized LanguageService, which has not been done
as there are no real frontend request executed, thus
the normal FE Bootstrap was not run. This leads to
undefined index errors because $GLOBALS['LANG'] is not
initalized.

The patch initalizes the LanguageService using the
Bootstrap::initalizeLanguageObject() in the setup().

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1