Skip to content

Commit

Permalink
VakifKatilimPosRequestDataMapper remove unnecessary $txTypeMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
nuryagdym committed May 29, 2024
1 parent 23a045a commit eaf0d5e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ class VakifKatilimPosRequestDataMapper extends AbstractRequestDataMapper
PosInterface::MODEL_NON_SECURE => '5',
];

/**
* {@inheritDoc}
*/
protected array $txTypeMappings = [
PosInterface::TX_TYPE_PAY_AUTH => '1',
];

/**
* Currency mapping
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Mews\Pos\DataMapper\RequestDataMapper\VakifKatilimPosRequestDataMapper;
use Mews\Pos\Entity\Account\KuveytPosAccount;
use Mews\Pos\Entity\Card\CreditCardInterface;
use Mews\Pos\Exceptions\UnsupportedTransactionTypeException;
use Mews\Pos\Factory\AccountFactory;
use Mews\Pos\Factory\CreditCardFactory;
use Mews\Pos\Factory\CryptFactory;
Expand Down Expand Up @@ -60,24 +59,6 @@ protected function setUp(): void
$this->requestDataMapper = new VakifKatilimPosRequestDataMapper($this->dispatcher, $crypt);
}

/**
* @testWith ["pay", "1"]
*/
public function testMapTxType(string $txType, string $expected): void
{
$actual = $this->requestDataMapper->mapTxType($txType);
$this->assertSame($expected, $actual);
}

/**
* @testWith ["Sale"]
*/
public function testMapTxTypeException(string $txType): void
{
$this->expectException(UnsupportedTransactionTypeException::class);
$this->requestDataMapper->mapTxType($txType);
}

/**
* @return void
*/
Expand Down

0 comments on commit eaf0d5e

Please sign in to comment.