add simple apitest

This commit is contained in:
lubiana 2025-02-06 20:35:49 +01:00
parent d92a63fd7d
commit b00b923d43
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
13 changed files with 349 additions and 8 deletions

View file

@ -41,6 +41,7 @@ class FoodOrder
#[ORM\Column(type: UlidType::NAME, unique: true)]
private Ulid|null $id = new Ulid
) {
$this->id ??= new Ulid;
$this->orderItems = new ArrayCollection;
$this->open();
}