Test Failed
Push — develop ( 6098b1...78195a )
by Reüel
02:46
created

tests/Connect/SignatureTest.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\MultiSafepay\Connect;
4
5
use WP_UnitTestCase;
0 ignored issues
show
The type WP_UnitTestCase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
/**
8
 * Test signature
9
 *
10
 * @link http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf
11
 * @author remco
12
 */
13
class SignatureTest extends WP_UnitTestCase {
14
	/**
15
	 * Test signature.
16
	 */
17
	public function test_signature() {
18
		$amount         = 5000;
19
		$currency       = 'EUR';
20
		$account        = 'Test';
21
		$site_id        = '1234';
22
		$transaction_id = '1234567890';
23
24
		$signature = Signature::generate( $amount, $currency, $account, $site_id, $transaction_id );
25
26
		$expected = 'af90311cf82cbf9bb4fcda5a54005b92';
27
28
		$this->assertEquals( $expected, $signature );
29
	}
30
}
31