-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Truemoney jumpapp * Resolve M2 coding check issues. * Added tests. * Reverting magento version in dev to 2.4.4 * Added more tests. * Added missing @Covers annotation * Refactored CapabilitiesConfigProvider and added tests. * Resolve M2 coding standard issue and update tests. * Refactored APMBuildter tests. * Removed Wallet keyword from admin html and translation. * Created new variables to hold the merged values from two different arrays. --------- Co-authored-by: Aashish <[email protected]>
- Loading branch information
1 parent
fda3305
commit d9a0c8b
Showing
16 changed files
with
395 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Omise\Payment\Test\Unit\Gateway\Request\APMBuilders; | ||
|
||
use Magento\Payment\Gateway\Data\OrderAdapterInterface; | ||
use Omise\Payment\Helper\OmiseHelper; | ||
use Omise\Payment\Helper\ReturnUrlHelper; | ||
use Omise\Payment\Model\Capabilities; | ||
use Omise\Payment\Model\Config\Config; | ||
use PHPUnit\Framework\TestCase; | ||
use Omise\Payment\Test\Mock\InfoMock; | ||
|
||
abstract class APMBuilderTest extends TestCase | ||
{ | ||
protected $builder; | ||
protected $helper; | ||
protected $returnUrlHelper; | ||
protected $config; | ||
protected $capabilities; | ||
protected $orderMock; | ||
protected $infoMock; | ||
|
||
protected function setUp(): void | ||
{ | ||
$this->helper = $this->getMockBuilder(OmiseHelper::class)->disableOriginalConstructor()->getMock(); | ||
$this->returnUrlHelper = $this->getMockBuilder(ReturnUrlHelper::class)->disableOriginalConstructor()->getMock(); | ||
$this->config = $this->getMockBuilder(Config::class)->disableOriginalConstructor()->getMock(); | ||
$this->capabilities = $this->getMockBuilder(Capabilities::class)->disableOriginalConstructor()->getMock(); | ||
$this->orderMock = $this->getMockBuilder(OrderAdapterInterface::class)->getMock(); | ||
$this->infoMock = $this->getMockBuilder(InfoMock::class)->getMock(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
Test/Unit/APMRequestValidatorTest.php → ...t/APMBuilders/APMRequestValidatorTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 3 additions & 27 deletions
30
Test/Unit/AlipayAPMBuilderTest.php → ...uest/APMBuilders/AlipayAPMBuilderTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 6 additions & 26 deletions
32
Test/Unit/AtomeAPMBuilderTest.php → ...quest/APMBuilders/AtomeAPMBuilderTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 3 additions & 27 deletions
30
Test/Unit/PayPayAPMBuilderTest.php → ...uest/APMBuilders/PayPayAPMBuilderTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.