8 if (!
$website->load(
'test',
'code')->getId()) {
9 $website->setData([
'code' =>
'test',
'name' =>
'Test Website',
'default_group_id' =>
'1',
'is_default' =>
'0']);
14 if (!
$store->load(
'fixture_second_store',
'code')->getId()) {
16 \
Magento\Store\Model\StoreManagerInterface::class
17 )->getWebsite()->getDefaultGroupId();
19 'fixture_second_store' 25 'Fixture Second Store' 35 if (!
$store->load(
'fixture_third_store',
'code')->getId()) {
37 \
Magento\Store\Model\StoreManagerInterface::class
38 )->getWebsite()->getDefaultGroupId();
58 ->create(\
Magento\Framework\Indexer\IndexerRegistry::class);
if(! $website->load('test', 'code') ->getId()) $websiteId
static getObjectManager()