SecurityTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_get_calculations_parameters_out() 0 4 1
A test_get_calculations_parameters_in() 0 4 1
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
4
5
class SecurityTest extends \WP_UnitTestCase {
6
	/**
7
	 * Test get calculations parameters in.
8
	 */
9
	public function test_get_calculations_parameters_in() {
10
		$parameters = Security::get_calculations_parameters_in();
11
12
		$this->assertContains( Parameters::AMOUNT, $parameters );
13
	}
14
15
	/**
16
	 * Test get calculations parameters out.
17
	 */
18
	public function test_get_calculations_parameters_out() {
19
		$parameters = Security::get_calculations_parameters_out();
20
21
		$this->assertContains( Parameters::NC_ERROR, $parameters );
22
	}
23
}
24