File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
app/code/Magento/Catalog/Test/Unit/Ui/DataProvider/Product/Form/Modifier Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 24
24
*/
25
25
class WebsitesTest extends AbstractModifierTest
26
26
{
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 ;
33
33
34
34
/**
35
35
* @var WebsiteRepositoryInterface|MockObject
@@ -251,7 +251,8 @@ public function testModifyDataNoWebsitesExistingProduct()
251
251
252
252
$ this ->assertArrayHasKey (self ::WEBSITE_ID , $ meta ['websites ' ]['children ' ]);
253
253
$ this ->assertArrayHasKey ('copy_to_stores. ' . self ::WEBSITE_ID , $ meta ['websites ' ]['children ' ]);
254
- $ this ->assertEquals ('0 ' ,
254
+ $ this ->assertEquals (
255
+ '0 ' ,
255
256
$ meta ['websites ' ]['children ' ][self ::WEBSITE_ID ]['arguments ' ]['data ' ]['config ' ]['value ' ]
256
257
);
257
258
}
@@ -269,7 +270,8 @@ public function testModifyDataNoWebsitesNewProduct()
269
270
$ meta = $ this ->getModel ()->modifyMeta ([]);
270
271
271
272
$ this ->assertArrayHasKey (self ::WEBSITE_ID , $ meta ['websites ' ]['children ' ]);
272
- $ this ->assertEquals ('1 ' ,
273
+ $ this ->assertEquals (
274
+ '1 ' ,
273
275
$ meta ['websites ' ]['children ' ][self ::WEBSITE_ID ]['arguments ' ]['data ' ]['config ' ]['value ' ]
274
276
);
275
277
}
You can’t perform that action at this time.
0 commit comments