【发布时间】:2019-02-08 11:16:53
【问题描述】:
我需要保存失败测试的源代码来修复它。在yii 2中使用codeception测试时如何获取源html?
尽管有这些确切的功能,但我无法让 $I->grabPageSource() 和 $I->_getResponseContent() 工作。
public function checkCall(FunctionalTester $I)
{
$I->amOnRoute('mx/ed',['model' => 'State']);
$I->seeResponseCodeIs(200);
$I->seeResponseCodeIsSuccessful();
$html = $I->grabPageSource();
}
【问题讨论】:
标签: unit-testing yii2 yii2-advanced-app functional-testing codeception