IntegrationTest::test_gateway()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Icepay;
4
5
/**
6
 * Title: ICEPAY - Integration test
7
 * Description:
8
 * Copyright: 2005-2021 Pronamic
9
 * Company: Pronamic
10
 *
11
 * @author Remco Tolsma
12
 * @version 2.0.0
13
 */
14
class IntegrationTest extends \PHPUnit_Framework_TestCase {
15
	/**
16
	 * Integration.
17
	 *
18
	 * @var Integration
19
	 */
20
	public $integration;
21
22
	/**
23
	 * Setup.
24
	 */
25
	public function setUp() {
26
		$this->integration = new Integration();
27
	}
28
29
	/**
30
	 * Test config.
31
	 */
32
	public function test_config() {
33
		$config = $this->integration->get_config( 99 );
34
35
		$this->assertInstanceOf( __NAMESPACE__ . '\Config', $config );
36
	}
37
38
	/**
39
	 * Test gateway.
40
	 */
41
	public function test_gateway() {
42
		$gateway = $this->integration->get_gateway( 99 );
43
44
		$this->assertInstanceOf( __NAMESPACE__ . '\Gateway', $gateway );
45
	}
46
47
	/**
48
	 * Test settings.
49
	 */
50
	public function test_settings() {
51
		$this->assertInternalType( 'array', $this->integration->get_settings_fields() );
52
	}
53
}
54