我有一个codeception
cest
测试,我想在其中检查是否调用了某个方法。
public function my_test(FunctionalTester $I)
{
$I->authenticateTestUser($I);
$this->fillKomitentForm($I, 'kom1', 'Komitent 1');
$I->click('btnSave');
// Here I want to check that MyService.myMethod() is invoked
}
我可以帮忙,但无论如何我不知道如何确保调用某些对象上的某些方法。考虑到这是Laravel 5.2
并且这些服务是使用服务提供商绑定的。