Skip to content

Commit a0a150f

Browse files
committed
#2340: Fixed static tests
1 parent 55a380f commit a0a150f

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

app/code/Magento/Bundle/Model/OptionRepository.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function __construct(
9090
}
9191

9292
/**
93-
* {@inheritdoc}
93+
* @inheritdoc
9494
*/
9595
public function get($sku, $optionId)
9696
{
@@ -123,7 +123,7 @@ public function get($sku, $optionId)
123123
}
124124

125125
/**
126-
* {@inheritdoc}
126+
* @inheritdoc
127127
*/
128128
public function getList($sku)
129129
{
@@ -132,6 +132,8 @@ public function getList($sku)
132132
}
133133

134134
/**
135+
* Return list of product options
136+
*
135137
* @param ProductInterface $product
136138
* @return \Magento\Bundle\Api\Data\OptionInterface[]
137139
*/
@@ -141,7 +143,7 @@ public function getListByProduct(ProductInterface $product)
141143
}
142144

143145
/**
144-
* {@inheritdoc}
146+
* @inheritdoc
145147
*/
146148
public function delete(\Magento\Bundle\Api\Data\OptionInterface $option)
147149
{
@@ -157,7 +159,7 @@ public function delete(\Magento\Bundle\Api\Data\OptionInterface $option)
157159
}
158160

159161
/**
160-
* {@inheritdoc}
162+
* @inheritdoc
161163
*/
162164
public function deleteById($sku, $optionId)
163165
{
@@ -169,7 +171,7 @@ public function deleteById($sku, $optionId)
169171
}
170172

171173
/**
172-
* {@inheritdoc}
174+
* @inheritdoc
173175
*/
174176
public function save(
175177
\Magento\Catalog\Api\Data\ProductInterface $product,
@@ -189,6 +191,9 @@ public function save(
189191
* @param \Magento\Catalog\Api\Data\ProductInterface $product
190192
* @param \Magento\Bundle\Api\Data\OptionInterface $option
191193
* @return $this
194+
* @throws InputException
195+
* @throws NoSuchEntityException
196+
* @throws \Magento\Framework\Exception\CouldNotSaveException
192197
*/
193198
protected function updateOptionSelection(
194199
\Magento\Catalog\Api\Data\ProductInterface $product,
@@ -228,9 +233,12 @@ protected function updateOptionSelection(
228233
}
229234

230235
/**
236+
* Retrieve product by SKU
237+
*
231238
* @param string $sku
232239
* @return \Magento\Catalog\Api\Data\ProductInterface
233-
* @throws \Magento\Framework\Exception\InputException
240+
* @throws InputException
241+
* @throws NoSuchEntityException
234242
*/
235243
private function getProduct($sku)
236244
{

app/code/Magento/Bundle/Test/Unit/Model/OptionRepositoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ public function testDeleteById()
280280
/**
281281
* Tests if NoSuchEntityException thrown when provided $optionId not found
282282
*/
283-
public function testDeleteByIdException() {
283+
public function testDeleteByIdException()
284+
{
284285
$productSku = 'sku';
285286
$optionId = null;
286287

dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\<?php
1+
<?php
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.

dev/tests/integration/testsuite/Magento/GroupedProduct/_files/product_grouped_with_out_of_stock_rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
\<?php
1+
<?php
22
/**
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.

0 commit comments

Comments
 (0)