6 declare(strict_types=1);
12 use PHPUnit\Framework\TestCase;
20 private $productRepository;
25 private $getDefaultSourceItemBySku;
44 $product = $this->productRepository->get(
'SKU-3');
45 $this->productRepository->save(
$product);
47 $defaultSourceItem = $this->getDefaultSourceItemBySku->execute(
'SKU-3');
50 'Default source was accidentally created on a product not assigned while saving it'
testSaveOutOfStockProductNotAssignedToDefaultSource()
static getObjectManager()