Answer the question
In order to leave comments, you need to log in
Does it make sense to test a method that simply hands off work to another method?
There is this in the code:
public function checkStatuses()
{
if (!empty($this->getCollectionByStatus('ball'))) {
$this->provider->filterDataByName('ball');
}
return $this;
}
Answer the question
In order to leave comments, you need to log in
If this is not a private method, then it is necessary. Why? Because tests are responsible not only for the fact that the code works as expected, but also that it has not changed its behavior
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question