Как заменить sendMessageService
в CreateVacationCest
на макет?
Контроллер
class BotController extends Controller
{
private $sendMessageService;
public function __construct(SendMessageService $sendMessageService)
{
$this->sendMessageService = $sendMessageService;
}
}
Класс Cest
class CreateVacationCest
{
public function testVacationStatus(ApiTester $I)
{
$I->sendPOST('/test', ['message' => 'test']);
}
}