Skip to content

Commit 84124f7

Browse files
author
Jack Krielen
committed
Code Styling, Fixing
1 parent c6a43f3 commit 84124f7

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

app/code/Magento/ConfigurableProduct/Test/Unit/Block/Product/View/Type/ConfigurableTest.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,11 @@ public function cacheKeyProvider(): array
230230
* @param string|null $priceCurrency
231231
* @param string|null $customerGroupId
232232
*/
233-
public function testGetCacheKeyInfo(array $expected, string $priceCurrency = null, string $customerGroupId = null): void
234-
{
233+
public function testGetCacheKeyInfo(
234+
array $expected,
235+
string $priceCurrency = null,
236+
string $customerGroupId = null
237+
): void {
235238
$storeMock = $this->getMockBuilder(\Magento\Store\Api\Data\StoreInterface::class)
236239
->setMethods(['getCurrentCurrency'])
237240
->getMockForAbstractClass();
@@ -385,7 +388,7 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage):
385388
],
386389
],
387390
'msrpPrice' => [
388-
'amount' => null ,
391+
'amount' => null,
389392
]
390393
],
391394
],
@@ -419,8 +422,9 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage):
419422
* @param \PHPUnit\Framework\MockObject\MockObject $productMock
420423
* @return \PHPUnit\Framework\MockObject\MockObject
421424
*/
422-
private function getProductTypeMock(\PHPUnit\Framework\MockObject\MockObject $productMock): \PHPUnit\Framework\MockObject\MockObject
423-
{
425+
private function getProductTypeMock(
426+
\PHPUnit\Framework\MockObject\MockObject $productMock
427+
): \PHPUnit\Framework\MockObject\MockObject {
424428
$currencyMock = $this->getMockBuilder(\Magento\Directory\Model\Currency::class)
425429
->disableOriginalConstructor()
426430
->getMock();
@@ -501,8 +505,11 @@ protected function getAmountMock($amount): \PHPUnit\Framework\MockObject\MockObj
501505
* @param int $percentage
502506
* @return \PHPUnit\Framework\MockObject\MockObject
503507
*/
504-
protected function getTierPriceMock(\PHPUnit_Framework_MockObject_MockObject $amountMock, $priceQty, $percentage): \PHPUnit\Framework\MockObject\MockObject
505-
{
508+
protected function getTierPriceMock(
509+
\PHPUnit\Framework\MockObject\MockObject $amountMock,
510+
$priceQty,
511+
$percentage
512+
): \PHPUnit\Framework\MockObject\MockObject {
506513
$tierPrice = [
507514
'price_qty' => $priceQty,
508515
'price' => $amountMock,

0 commit comments

Comments
 (0)