diff --git a/tests/Patpass/ByWebpay/Responses/TransactionCommitResponseTest.php b/tests/Patpass/ByWebpay/Responses/TransactionCommitResponseTest.php deleted file mode 100644 index 74a07d5d..00000000 --- a/tests/Patpass/ByWebpay/Responses/TransactionCommitResponseTest.php +++ /dev/null @@ -1,83 +0,0 @@ - 'testVci', - 'amount' => 100, - 'status' => 'testStatus', - 'buy_order' => 'testBuyOrder', - 'session_id' => 'testSessionId', - 'card_detail' => 'testCardDetail', - 'accounting_date' => 'testAccountingDate', - 'transaction_date' => 'testTransactionDate', - 'authorization_code' => 'testAuthorizationCode', - 'payment_type_code' => 'testPaymentTypeCode', - 'installments_number' => 3 - ]; - - $this->commitResponse = new TransactionCommitResponse($json); - } - public function testSetAndGetVci() - { - $this->assertSame('testVci', $this->commitResponse->getVci()); - } - - public function testSetAndGetAmount() - { - $this->assertSame(100, $this->commitResponse->getAmount()); - } - - public function testSetAndGetStatus() - { - $this->assertSame('testStatus', $this->commitResponse->getStatus()); - } - - public function testSetAndGetBuyOrder() - { - $this->assertSame('testBuyOrder', $this->commitResponse->getBuyOrder()); - } - - public function testSetAndGetSessionId() - { - $this->assertSame('testSessionId', $this->commitResponse->getSessionId()); - } - - public function testSetAndGetCardDetail() - { - $this->assertSame('testCardDetail', $this->commitResponse->getCardDetail()); - } - - public function testSetAndGetAccountingDate() - { - $this->assertSame('testAccountingDate', $this->commitResponse->getAccountingDate()); - } - - public function testSetAndGetTransactionDate() - { - $this->assertSame('testTransactionDate', $this->commitResponse->getTransactionDate()); - } - - public function testSetAndGetAuthorizationCode() - { - $this->assertSame('testAuthorizationCode', $this->commitResponse->getAuthorizationCode()); - } - - public function testSetAndGetPaymentTypeCode() - { - $this->assertSame('testPaymentTypeCode', $this->commitResponse->getPaymentTypeCode()); - } - - public function testSetAndGetInstallmentsNumber() - { - $this->assertSame(3, $this->commitResponse->getInstallmentsNumber()); - } -} diff --git a/tests/Patpass/ByWebpay/Responses/TransactionCreateResponseTest.php b/tests/Patpass/ByWebpay/Responses/TransactionCreateResponseTest.php deleted file mode 100644 index 096ace97..00000000 --- a/tests/Patpass/ByWebpay/Responses/TransactionCreateResponseTest.php +++ /dev/null @@ -1,34 +0,0 @@ - 'testToken', - 'url' => 'testUrl' - ]; - - $response = new TransactionCreateResponse($json); - - $this->assertSame('testToken', $response->getToken()); - $this->assertSame('testUrl', $response->getUrl()); - } - - /** @test */ - public function it_returns_null_when_key_does_not_exist_in_json() - { - $json = [ - 'token' => 'testToken' - ]; - - $response = new TransactionCreateResponse($json); - - $this->assertSame('testToken', $response->getToken()); - $this->assertNull($response->getUrl()); - } -} diff --git a/tests/Patpass/PatpassByWebpayTest.php b/tests/Patpass/PatpassByWebpayTest.php deleted file mode 100644 index ec164b95..00000000 --- a/tests/Patpass/PatpassByWebpayTest.php +++ /dev/null @@ -1,29 +0,0 @@ -assertSame(PatpassByWebpay::DEFAULT_COMMERCE_CODE, $options->getCommerceCode()); - $this->assertSame(PatpassByWebpay::DEFAULT_API_KEY, $options->getApiKey()); - $this->assertSame(Options::ENVIRONMENT_INTEGRATION, $options->getIntegrationType()); - } - - /** @test */ - public function it_returns_default_options() - { - $options = PatpassByWebpay::getDefaultOptions(); - - $this->assertSame(PatpassByWebpay::DEFAULT_COMMERCE_CODE, $options->getCommerceCode()); - $this->assertSame(PatpassByWebpay::DEFAULT_API_KEY, $options->getApiKey()); - $this->assertSame(Options::ENVIRONMENT_INTEGRATION, $options->getIntegrationType()); - } -}