fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 02:47:01 +00:00
parent 9686a263c0
commit da34c7d3fe

View File

@ -227,11 +227,11 @@ final class ApiController extends Controller
StockMapper::create()->execute($stock);
$stockLocation = new StockLocation($stock->name . '-1');
$stockLocation->stock = $stock->id;
$stockLocation->stock = $stock;
StockLocationMapper::create()->execute($stockLocation);
$stockShelf = new StockShelf($stockLocation->name . '-1');
$stockShelf->location = $stockLocation->id;
$stockShelf->location = $stockLocation;
StockShelfMapper::create()->execute($stockShelf);
}