Skip to content

Commit cc57a70

Browse files
Change variable name.
1 parent 193f03d commit cc57a70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Test/Unit/Component/ProductsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function testConstructVariations()
163163
);
164164

165165
$simpleMockB = $this->createProduct(2);
166-
166+
167167
$simpleMockB->method('getAttribute')
168168
->will(
169169
$this->onConsecutiveCalls(
@@ -212,15 +212,15 @@ public function testStockIsNotSet()
212212
$this->assertFalse($this->component->isStockSpecified($testData));
213213
}
214214

215-
private function createProduct($id)
215+
private function createProduct($productId)
216216
{
217217
$productMock = $this->getMockBuilder('Magento\Catalog\Model\Product')
218218
->disableOriginalConstructor()
219219
->setMethods(['hasData', 'getSku', 'getIdBySku', 'load', 'getId', 'getResource', 'getAttribute'])
220220
->getMock();
221221
$productMock->expects($this->any())
222222
->method('getId')
223-
->willReturn($id);
223+
->willReturn($productId);
224224
$productMock->expects($this->any())
225225
->method('getIdBySku')
226226
->willReturnSelf();

0 commit comments

Comments
 (0)