IBX-11766: Removed prod phpunit dependency#184
Conversation
5cacdf4 to
d3ba6d1
Compare
d3ba6d1 to
7dd064b
Compare
…turnMap instead of deprecated and removed TestCase::returnValueMap
7dd064b to
8404954
Compare
|
Hi! Maybe you've checked this already, but the reason phpunit was in the require section is that the Behat tests sometimes use PHPUnit assertions: so PHPUnit has to be installed on the project level when Behat tests are run. Might be good to run regressions to verify before merging this - if they're green it will be ok 👍 |
@mnocon By running regressions, do you mean some more/additional tests which are not triggered by CI jobs? Could you shortly introduce me to that topic please? |
|
By running regressions I mean running the whole test suite (not only the checks defined in the given repo), usually run by the QA by preparing a PR similar to this one: ibexa/commerce#1813 They'll help you with that once you're ready 😄 |
fb79df2 to
2729724
Compare
|



Caution
Related PRs:
#183
Description:
The main goal is to unblock updating of phpunit/phpunit in ibexa/* dev dependencies to a version higher than 10. Currently, this package narrows it down to max version 10.
This PR moves phpunit from prod to dev dependencies (updated to version
^12.5). Insrc/directory it replaces phpunit assertions with webmozart ones.Merging procedure
Unfortunately, because of high dependency cascade coupling between our packages which have some behat related logic in code - it's hard (or almost impossible) to make each separate package PR work standalone. Each of them needs to have mocked direct and indirect custom dependencies to all other packages (where we're replacing phpunit assertions with webmozart ones), because otherwise we have conflicts between webmozart versions (some packages have dependency to webmozart:v1 and I updated all packages to version ^2.3).
It's agreed that we'll merge this PR and all related (all mentioned in this PR) altogether. That should align all webmozart versions into one
^2.3, so we don't expect to have composer dependencies conflicts. Afterwards, if they're ll be any failing CI jobs - I'll handle and fix them one by one.For QA:
Documentation: