Skip to content

Commit

Permalink
add some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Sep 28, 2021
1 parent 8a6c89e commit a364d32
Show file tree
Hide file tree
Showing 3 changed files with 9,135 additions and 0 deletions.
45 changes: 45 additions & 0 deletions tests/php/Functional/Gateway/GatewayModuleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php


use Mollie\WooCommerce\Gateway\GatewayModule;
use PHPUnit\Framework\TestCase;

class GatewayModuleTest extends TestCase
{

public function testMaybeDisableBankTransferGateway()
{
}

public function testGatewaySurchargeHandling()
{
}

public function testSetOrderPaidByOtherGateway()
{
}

public function testInstantiatePaymentMethodGateways()
{
}

public function testMaybeDisableApplePayGateway()
{
}

public function testDisableSEPAInCheckout()
{
}

public function testDisableMollieOnPaymentMethodChange()
{
}

public function testMolliePayPalButtonHandling()
{
}

public function testMollieApplePayDirectHandling()
{
}
}
97 changes: 97 additions & 0 deletions tests/php/Unit/Gateway/MolliePaymentGatewayTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php


use Mollie\WooCommerce\Gateway\MolliePaymentGateway;
use PHPUnit\Framework\TestCase;

class MolliePaymentGatewayTest extends TestCase
{

public function testInit_form_fields()
{
}

public function testThankyou_page()
{
}

public function testGetSelectedIssuer()
{
}

public function testDisplayInstructions()
{
}

public function testGetProcessPaymentRedirect()
{
}

public function testGet_icon()
{
}

public function testIs_available()
{
}

public function testValidate_multi_select_countries_field()
{
}

public function testProcess_admin_options()
{
}

public function testOnOrderReceivedTitle()
{
}

public function testInit_settings()
{
}

public function testAdmin_options()
{
}

public function testGetReturnRedirectUrlForOrder()
{
}

public function testGetMollieMethod()
{
}

public function testOnOrderReceivedText()
{
}

public function testGetIconUrl()
{
}

public function testPaymentConfirmationAfterCoupleOfDays()
{
}

public function testProcess_refund()
{
}

public function testProcess_payment()
{
}

public function testGet_transaction_url()
{
}

public function testPayment_fields()
{
}

public function testHandlePaidOrderWebhook()
{
}
}
Loading

0 comments on commit a364d32

Please sign in to comment.