- Issue created by @gaurav_manerkar
- Status changed to Closed: works as designed
9 months ago 12:22pm 1 March 2024 - 🇦🇲Armenia murz Yerevan, Armenia
Mocking private methods is not available in PHPUnit, but you can use
TestHelpers::setMockedClassMethod()
to override (not mock) them. Look into the examples in the current tests:
https://git.drupalcode.org/project/test_helpers/-/blob/1.4.x/tests/src/U...