Skip to content

Commit 0165874

Browse files
author
Cristian Partica
committed
MAGETWO-35688: code review #1
1 parent 97f9051 commit 0165874

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Weee/Pricing/Render/Adjustment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function apply()
6666
*/
6767
public function getRawFinalAmount()
6868
{
69-
return $this->amountRender->getAmount()->getValue();
69+
return $this->finalAmount;
7070
}
7171

7272
/**

app/code/Magento/Weee/Test/Unit/Model/Observer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function testGetPriceConfiguration()
4040
],
4141
];
4242

43-
$testArrayWithWee=$testArray;
44-
$testArrayWithWee[0][0]['prices']['weeePrice']= [
43+
$testArrayWithWeee=$testArray;
44+
$testArrayWithWeee[0][0]['prices']['weeePrice']= [
4545
'amount' => $testArray[0][0]['prices']['finalPrice']['amount'],
4646
];
47-
$testArrayWithWee[0][1]['prices']['weeePrice']= [
47+
$testArrayWithWeee[0][1]['prices']['weeePrice']= [
4848
'amount' => $testArray[0][1]['prices']['finalPrice']['amount'],
4949
];
5050

@@ -62,7 +62,7 @@ public function testGetPriceConfiguration()
6262

6363
$observerObject->expects($this->once())
6464
->method('setData')
65-
->with('config', $testArrayWithWee);
65+
->with('config', $testArrayWithWeee);
6666

6767
$objectManager = new ObjectManager($this);
6868
$weeeObserverObject = $objectManager->getObject(

0 commit comments

Comments
 (0)