test(stock): cover aggregate reservation lifecycle
This commit is contained in:
@@ -300,10 +300,13 @@ class DesfilePuraTendenciaSeederTest extends TestCase
|
||||
->where('user_id', $user->id)
|
||||
->where('source_catalog_item_id', $catalogItemId)
|
||||
->count());
|
||||
$this->assertSame(48, DB::table('stock_reservations')
|
||||
->where('purchase_id', $purchase->id)
|
||||
$this->assertSame(1, DB::table('stock_reservations')
|
||||
->where('id', $purchase->stock_reservation_id)
|
||||
->where('status', 'committed')
|
||||
->count());
|
||||
$this->assertSame(48, DB::table('stock_reservation_lines')
|
||||
->where('stock_reservation_id', $purchase->stock_reservation_id)
|
||||
->count());
|
||||
|
||||
foreach ([
|
||||
['sector' => 'A', 'fila' => '1', 'tipo' => 'NORMAL', 'count' => 16],
|
||||
|
||||
Reference in New Issue
Block a user