是否可以在Codeception中向数据库插入几条记录?该代码无效,但也许还有其他选择。
$this->tester->haveRecord('vacations',
['destination' => $this->"Place 1"],
['destination' => $this->"Place 2"]);
将它分成两部分效果很好。
$this->tester->haveRecord('vacations',
['destination' => $this->"Place 1"]);
$this->tester->haveRecord('vacations',
['destination' => $this->"Place 2"]);