'id' =>
$this->ids->
get('p4'
),
'stock' => '10',
'available_stock' => '10',
],
[ 'id' =>
$this->ids->
get('p5'
),
'stock' => '-6',
'available_stock' => '-6',
],
];
$migration =
new Migration1691662140MigrateAvailableStock();
$this->
createProduct($this->ids->
getBytes('p1'
), 5, 7, true
);
$this->
createProduct($this->ids->
getBytes('p2'
), 6, 6, true
);
$this->
createProduct($this->ids->
getBytes('p3'
), 8, 8, false
);
$this->
createProduct($this->ids->
getBytes('p4'
), 8, 10, false
);
$this->
createProduct($this->ids->
getBytes('p5'
), 8, -6, true
);
$migration->
update($this->connection
);
static::
assertSame( $expected,