Skip to content

Commit b61b3cd

Browse files
author
Anna Bukatar
committed
ACP2E-1136: Product website assignment can be removed from REST API, but admin UI still does not reflect that
1 parent dde87e8 commit b61b3cd

File tree

1 file changed

+10
-8
lines changed
  • app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier

1 file changed

+10
-8
lines changed

app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier/WebsitesTest.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
*/
2525
class WebsitesTest extends AbstractModifierTest
2626
{
27-
const PRODUCT_ID = 1;
28-
const WEBSITE_ID = 1;
29-
const GROUP_ID = 1;
30-
const STORE_VIEW_NAME = 'StoreView';
31-
const STORE_VIEW_ID = 1;
32-
const SECOND_WEBSITE_ID = 2;
27+
public const PRODUCT_ID = 1;
28+
public const WEBSITE_ID = 1;
29+
public const GROUP_ID = 1;
30+
public const STORE_VIEW_NAME = 'StoreView';
31+
public const STORE_VIEW_ID = 1;
32+
public const SECOND_WEBSITE_ID = 2;
3333

3434
/**
3535
* @var WebsiteRepositoryInterface|MockObject
@@ -251,7 +251,8 @@ public function testModifyDataNoWebsitesExistingProduct()
251251

252252
$this->assertArrayHasKey(self::WEBSITE_ID, $meta['websites']['children']);
253253
$this->assertArrayHasKey('copy_to_stores.' . self::WEBSITE_ID, $meta['websites']['children']);
254-
$this->assertEquals('0',
254+
$this->assertEquals(
255+
'0',
255256
$meta['websites']['children'][self::WEBSITE_ID]['arguments']['data']['config']['value']
256257
);
257258
}
@@ -269,7 +270,8 @@ public function testModifyDataNoWebsitesNewProduct()
269270
$meta = $this->getModel()->modifyMeta([]);
270271

271272
$this->assertArrayHasKey(self::WEBSITE_ID, $meta['websites']['children']);
272-
$this->assertEquals('1',
273+
$this->assertEquals(
274+
'1',
273275
$meta['websites']['children'][self::WEBSITE_ID]['arguments']['data']['config']['value']
274276
);
275277
}

0 commit comments

Comments
 (0)