wp-pay-gateways /
ideal-basic
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Pronamic\WordPress\Pay\Gateways\IDealBasic; |
||
| 4 | |||
| 5 | use DateTime; |
||
| 6 | use Pronamic\WordPress\Pay\Core\Statuses; |
||
| 7 | |||
| 8 | class NotificationTest extends \WP_UnitTestCase { |
||
|
0 ignored issues
–
show
|
|||
| 9 | public function test_notification() { |
||
| 10 | $notification = new Notification(); |
||
| 11 | $notification->set_date( new DateTime() ); |
||
| 12 | $notification->set_transaction_id( '1234567890' ); |
||
| 13 | $notification->set_purchase_id( '123456' ); |
||
| 14 | $notification->set_status( Statuses::SUCCESS ); |
||
| 15 | |||
| 16 | $this->assertInstanceOf( 'DateTime', $notification->get_date() ); |
||
| 17 | $this->assertEquals( '1234567890', $notification->get_transaction_id() ); |
||
| 18 | $this->assertEquals( '123456', $notification->get_purchase_id() ); |
||
| 19 | $this->assertEquals( Statuses::SUCCESS, $notification->get_status() ); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |
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