Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Commit

Permalink
Added an test.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 28, 2015
1 parent 1abdd7c commit 34e2916
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ConfigFactory.php
Expand Up @@ -10,6 +10,6 @@
*/
class Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_ConfigFactory extends Pronamic_WP_Pay_Gateways_IDealBasic_ConfigFactory {
public function __construct() {
parent::__construct( 'Pronamic_WP_Pay_Gateways_ING_IDealBasic_Config', 'Pronamic_WP_Pay_Gateways_ING_IDealBasic_ConfigTest' );
parent::__construct( 'Pronamic_WP_Pay_Gateways_ING_IDealBasic_Config', 'Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_TestConfig' );
}
}
2 changes: 1 addition & 1 deletion src/ConfigTest.php → src/TestConfig.php
Expand Up @@ -8,7 +8,7 @@
* @author Remco Tolsma
* @version 1.0.0
*/
class Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_ConfigTest extends Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_Config {
class Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_TestConfig extends Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_Config {
public function get_payment_server_url() {
return 'https://secure.mollie.nl/xml/idealAcquirer/testmode/lite/';
}
Expand Down
21 changes: 21 additions & 0 deletions tests/ConfigTest.php
@@ -0,0 +1,21 @@
<?php

/**
* Title: Mollie - iDEAL Basic - Config test
* Description:
* Copyright: Copyright (c) 2005 - 2014
* Company: Pronamic
* @author Remco Tolsma
* @version 1.0.0
*/
class Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_ConfigTest extends PHPUnit_Framework_TestCase {
public function test_config() {
$config = new Pronamic_WP_Pay_Gateways_Mollie_IDealBasic_Config();

$expected = 'https://secure.mollie.nl/xml/idealAcquirer/lite/';

$url = $config->get_payment_server_url();

$this->assertEquals( $expected, $url );
}
}

0 comments on commit 34e2916

Please sign in to comment.