6 declare(strict_types=1);
13 use Magento\Store\Model\WebsiteFactory;
15 use PHPUnit\Framework\TestCase;
22 private $websiteFactory;
27 private $getAssignedStockIdForWebsite;
33 GetAssignedStockIdForWebsiteInterface::class
37 public function testDeleteWebsiteToStockLink()
42 $website = $this->websiteFactory->create();
48 $stockId = $this->getAssignedStockIdForWebsite->execute(
$websiteCode);
49 self::assertNull($stockId);
56 private function deleteWebsite(Website
$website)
60 $registry->register(
'isSecureArea',
true);
63 $registry->register(
'isSecureArea',
false);
if(!isset($_GET['website_code'])) $websiteCode
static getObjectManager()