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 2424 */
2525class 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 }
You can’t perform that action at this time.
0 commit comments