HomePhabricator

mediawiki.cookie: Export config via packageFiles

Description

mediawiki.cookie: Export config via packageFiles

  • Add a private setDefaults() method to allow mocking from unit tests.
  • Use matching keys between the data export and the API.
  • Reduce duplication in the code.
  • Access the Sinon stub explicitly instead of via the public path.
  • Remove use of the now-redundant QUnit.newMwEnvironment().

Change-Id: I600332cdb738f0b443549948b9f070f3ccfa12aa

Details

Provenance
KrinkleAuthored on Mar 9 2019, 2:46 AM
aaronCommitted on Mar 10 2019, 12:22 AM
Parents
rMWf1644aa1b0dd: Merge "maintenance: Replace deprecated global $wgParser with getParser()…
Branches
Unknown
Tags
Unknown
ChangeId
I600332cdb738f0b443549948b9f070f3ccfa12aa