Repository navigation
Conversation
02e5239 to
86104b7
Compare
…nceWithMocks Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
The order might be important when mocks are used in the constructor. This is quite common for IConfig for instance. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1e77fe4 to
0523943
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
Is that related to the warning PHPUnit 12 is giving? Or are we migrating to something that then even more disallows us to move forward? |
Yeah this one is hard, I do not understand at all this mock/stub thing. But that clashes with my automock thing because I cannot guess which mocks are gonna get expectations. So I’m not sure what’s the best fix, either add this |
Description
Migrate test classes to the new method createInstanceWithMocks.
Motivation and context
See nextcloud/server#64736
How has this been tested?
Unit test included, was also used on server code base with success.
Types of changes
PR checklist