'b6073234fc601007b541885dd70491f1' =>
[ 'green',
],
],
$combinations);
static::
assertFalse($result->
isAvailable(['green', 'red'
]));
static::
assertFalse($result->
isAvailable(['green'
]));
} private function getAvailableCombinationLoader(?AbstractStockStorage
$stockStorage = null
): AvailableCombinationLoader
{ $connection =
$this->
getMockedConnection();
return new AvailableCombinationLoader($connection,
$stockStorage ??
$this->
createMock(AbstractStockStorage::
class));
} private function getMockedConnection(): Connection
{ $result =
$this->
createMock(Result::
class);
$result->
method('fetchAllAssociative'
)->
willReturn([ [ 'id' => 'product-1',
'available' => true,