File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/Catalog/Test/Unit/Block/Product/View Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ protected function mockContext()
77
77
->willReturn ($ this ->registry );
78
78
}
79
79
80
- public function testGetGalleryImagesJsonWithLabel (){
80
+ public function testGetGalleryImagesJsonWithLabel ()
81
+ {
81
82
$ this ->prepareGetGalleryImagesJsonMocks ();
82
83
$ json = $ this ->model ->getGalleryImagesJson ();
83
84
$ decodedJson = json_decode ($ json , true );
@@ -91,15 +92,17 @@ public function testGetGalleryImagesJsonWithLabel(){
91
92
$ this ->assertEquals ('test_video_url ' , $ decodedJson [0 ]['videoUrl ' ]);
92
93
}
93
94
94
- public function testGetGalleryImagesJsonWithoutLabel (){
95
+ public function testGetGalleryImagesJsonWithoutLabel ()
96
+ {
95
97
$ this ->prepareGetGalleryImagesJsonMocks (false );
96
98
$ json = $ this ->model ->getGalleryImagesJson ();
97
99
$ decodedJson = json_decode ($ json , true );
98
100
$ this ->assertEquals ('test_product_name ' , $ decodedJson [0 ]['caption ' ]);
99
101
100
102
}
101
103
102
- private function prepareGetGalleryImagesJsonMocks ($ hasLabel = true ){
104
+ private function prepareGetGalleryImagesJsonMocks ($ hasLabel = true )
105
+ {
103
106
$ storeMock = $ this ->getMockBuilder (\Magento \Store \Model \Store::class)
104
107
->disableOriginalConstructor ()
105
108
->getMock ();
You can’t perform that action at this time.
0 commit comments