Why is unit testing harder in OOP than functional programming?
OOP promotes code reuse, which means that your tests have to consider more use cases.
Object-oriented languages tend to rely on frameworks such as Spring or Hibernate, which make them difficult to test.
Objects may maintain internal state, which is not easily accessible by the tests.
The quality of unit testing frameworks for functional languages is better.