Review main Merged

73831[BUGFIX] Fix ResourceCompressor initialization in unit tests

Benjamin Franzke CR +2 V +2 Easy +6 −0 updated 03/06/22, 18:30

Commit message

With #97030 ResourceCompressor has been refactored to
avoid side effect initialization in the constructor (to be
injectable) and rather used an initialize() method that is
called from all public methods.

Withing unit tests protected methods are called
via an accessible mock directly, and thus caused
errors in random unit test runs when for example
typo3temp/assets/compressed/.htaccess had not been
created by a prior unit test in
getFilenamesFromMainDirInBackendContext().

initialize() is now called prior to using protected
methods in the ResourceCompressorTest unit test.

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 2

Files 1