1 | <?php |
||
2 | |||
3 | namespace Pronamic\WordPress\Pay\Gateways\OmniKassa; |
||
4 | |||
5 | use WP_UnitTestCase; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | class TestPaymentRequestData extends WP_UnitTestCase { |
||
8 | function test_data() { |
||
9 | $omnikassa = new Client(); |
||
10 | |||
11 | $omnikassa->set_amount( 55 ); |
||
12 | $omnikassa->set_currency_numeric_code( 978 ); |
||
13 | $omnikassa->set_merchant_id( '011223744550001' ); |
||
14 | $omnikassa->set_normal_return_url( 'http://www.normalreturnurl.nl' ); |
||
15 | $omnikassa->set_automatic_response_url( 'http://www.automaticresponseurl.nl' ); |
||
16 | $omnikassa->set_transaction_reference( '534654' ); |
||
17 | $omnikassa->set_order_id( '201208345' ); |
||
18 | $omnikassa->set_key_version( 1 ); |
||
19 | |||
20 | $string = 'amount=55|currencyCode=978|merchantId=011223744550001|normalReturnUrl=http://www.normalreturnurl.nl|automaticResponseUrl=http://www.automaticresponseurl.nl|transactionReference=534654|orderId=201208345|keyVersion=1'; |
||
21 | |||
22 | $expected = Client::parse_piped_string( $string ); |
||
23 | |||
24 | $actual = $omnikassa->get_data_array(); |
||
25 | |||
26 | $this->assertEquals( $expected, $actual ); |
||
27 | } |
||
28 | } |
||
29 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths