Skip to content

Commit

Permalink
Code Styling, Fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Krielen committed Apr 16, 2020
1 parent c6a43f3 commit 84124f7
Showing 1 changed file with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,11 @@ public function cacheKeyProvider(): array
* @param string|null $priceCurrency
* @param string|null $customerGroupId
*/
public function testGetCacheKeyInfo(array $expected, string $priceCurrency = null, string $customerGroupId = null): void
{
public function testGetCacheKeyInfo(
array $expected,
string $priceCurrency = null,
string $customerGroupId = null
): void {
$storeMock = $this->getMockBuilder(\Magento\Store\Api\Data\StoreInterface::class)
->setMethods(['getCurrentCurrency'])
->getMockForAbstractClass();
Expand Down Expand Up @@ -385,7 +388,7 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage):
],
],
'msrpPrice' => [
'amount' => null ,
'amount' => null,
]
],
],
Expand Down Expand Up @@ -419,8 +422,9 @@ private function getExpectedArray($productId, $amount, $priceQty, $percentage):
* @param \PHPUnit\Framework\MockObject\MockObject $productMock
* @return \PHPUnit\Framework\MockObject\MockObject
*/
private function getProductTypeMock(\PHPUnit\Framework\MockObject\MockObject $productMock): \PHPUnit\Framework\MockObject\MockObject
{
private function getProductTypeMock(
\PHPUnit\Framework\MockObject\MockObject $productMock
): \PHPUnit\Framework\MockObject\MockObject {
$currencyMock = $this->getMockBuilder(\Magento\Directory\Model\Currency::class)
->disableOriginalConstructor()
->getMock();
Expand Down Expand Up @@ -501,8 +505,11 @@ protected function getAmountMock($amount): \PHPUnit\Framework\MockObject\MockObj
* @param int $percentage
* @return \PHPUnit\Framework\MockObject\MockObject
*/
protected function getTierPriceMock(\PHPUnit_Framework_MockObject_MockObject $amountMock, $priceQty, $percentage): \PHPUnit\Framework\MockObject\MockObject
{
protected function getTierPriceMock(
\PHPUnit\Framework\MockObject\MockObject $amountMock,
$priceQty,
$percentage
): \PHPUnit\Framework\MockObject\MockObject {
$tierPrice = [
'price_qty' => $priceQty,
'price' => $amountMock,
Expand Down

0 comments on commit 84124f7

Please sign in to comment.