make orderitem menuitem non nullable #18
1 changed files with 2 additions and 1 deletions
|
@ -31,9 +31,10 @@ final class OrderItemControllerTest extends DbWebTest
|
|||
|
||||
$this->manager->persist($this->order);
|
||||
|
||||
$this->menuItem = new MenuItem();
|
||||
$this->menuItem = new MenuItem;
|
||||
$this->menuItem->setName('Testing');
|
||||
$this->menuItem->setFoodVendor($this->vendor);
|
||||
|
||||
$this->manager->persist($this->menuItem);
|
||||
$this->manager->flush();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue