Not able to mock private methods

Created on 22 February 2024, 9 months ago
Updated 1 March 2024, 9 months ago

Problem/Motivation

With TestHelpers::createPartialMockWithConstructor, i can mock public and protected methods but not private. Not sure if it is a bug or there is any other way to mock private methods.

🐛 Bug report
Status

Closed: works as designed

Version

1.4

Component

Code

Created by

🇮🇳India gaurav_manerkar Vasco Da Gama, Goa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024