We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 9c8f56a1 authored by Torrey Tsui's avatar Torrey Tsui

Fix unit test err due to missing dep on injection

    Adyen\Payment\Tests\Helper\DataTest::testFormatAmount
ArgumentCountError: Too few arguments to function Adyen\Payment\Helper\Data::__construct(), 9 passed
parent ebecd605
...@@ -48,9 +48,22 @@ class DataTest extends \PHPUnit\Framework\TestCase ...@@ -48,9 +48,22 @@ class DataTest extends \PHPUnit\Framework\TestCase
$assetRepo = $this->getSimpleMock(\Magento\Framework\View\Asset\Repository::class); $assetRepo = $this->getSimpleMock(\Magento\Framework\View\Asset\Repository::class);
$assetSource = $this->getSimpleMock(\Magento\Framework\View\Asset\Source::class); $assetSource = $this->getSimpleMock(\Magento\Framework\View\Asset\Source::class);
$notificationFactory = $this->getSimpleMock(\Adyen\Payment\Model\ResourceModel\Notification\CollectionFactory::class); $notificationFactory = $this->getSimpleMock(\Adyen\Payment\Model\ResourceModel\Notification\CollectionFactory::class);
$taxConfig = $this->getSimpleMock(\Magento\Tax\Model\Config::class);
$taxCalculation = $this->getSimpleMock(\Magento\Tax\Model\Calculation::class);
$this->dataHelper = new \Adyen\Payment\Helper\Data($context, $encryptor, $dataStorage, $country, $moduleList, $this->dataHelper = new \Adyen\Payment\Helper\Data(
$billingAgreementCollectionFactory, $assetRepo, $assetSource, $notificationFactory); $context,
$encryptor,
$dataStorage,
$country,
$moduleList,
$billingAgreementCollectionFactory,
$assetRepo,
$assetSource,
$notificationFactory,
$taxConfig,
$taxCalculation
);
} }
public function testFormatAmount() public function testFormatAmount()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment