Sometimes you want to do:
if($I->see('lorum ipsum')){/*do something*/}
But you can’t.
Behavior Driven Development in WordPress
Sometimes you want to do:
if($I->see('lorum ipsum')){/*do something*/}
But you can’t.
I created a template to mock a second function within a class that is being tested:
Stack Overflow: Mock method from the same class that tested method is using