这是我的验收测试的代码片段:
$value= $I->grabFromDatabase('table', 'Settingcolumn', array('userid' => '1'));
if ($value="Y")
{
$I->see('hello world');
}
elseif ($value="N")
{
$I->dontSee('hello world');
}
代码接收中的 if/else 语句是否可能?我目前有设置值=N,所以 hello world 隐藏在网页上,但 CodeCeption 跳过了 if/else,直接转到“$I->see('hello world');” 并且失败了,因为它没有看到 hello world。* 我看到“hello world”失败