是否可以在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"]);