Skip to content

Commit 0f1b58f

Browse files
author
Ben Robie
committed
Correcting code to conform with static code testing.
#9931
1 parent 3381ec0 commit 0f1b58f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Product/View/GalleryTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ protected function mockContext()
7777
->willReturn($this->registry);
7878
}
7979

80-
public function testGetGalleryImagesJsonWithLabel(){
80+
public function testGetGalleryImagesJsonWithLabel()
81+
{
8182
$this->prepareGetGalleryImagesJsonMocks();
8283
$json = $this->model->getGalleryImagesJson();
8384
$decodedJson = json_decode($json, true);
@@ -91,15 +92,17 @@ public function testGetGalleryImagesJsonWithLabel(){
9192
$this->assertEquals('test_video_url', $decodedJson[0]['videoUrl']);
9293
}
9394

94-
public function testGetGalleryImagesJsonWithoutLabel(){
95+
public function testGetGalleryImagesJsonWithoutLabel()
96+
{
9597
$this->prepareGetGalleryImagesJsonMocks(false);
9698
$json = $this->model->getGalleryImagesJson();
9799
$decodedJson = json_decode($json, true);
98100
$this->assertEquals('test_product_name', $decodedJson[0]['caption']);
99101

100102
}
101103

102-
private function prepareGetGalleryImagesJsonMocks($hasLabel = true){
104+
private function prepareGetGalleryImagesJsonMocks($hasLabel = true)
105+
{
103106
$storeMock = $this->getMockBuilder(\Magento\Store\Model\Store::class)
104107
->disableOriginalConstructor()
105108
->getMock();

0 commit comments

Comments
 (0)