Skip to content

Commit 07ad80a

Browse files
Merge pull request #7 from EnesSacid-Buker/master
Payment test added.
2 parents dcffa76 + acc1ef3 commit 07ad80a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Tests/Feature/PaymentsTest.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Modules\OfflinePayments\Tests\Feature;
4+
5+
use Tests\Feature\PaymentTestCase;
6+
7+
class PaymentsTest extends PaymentTestCase
8+
{
9+
public $alias = 'offline-payments';
10+
11+
public $payment_request = [
12+
'payment_method' => 'offline-payments.cash.99',
13+
'type' => 'income',
14+
];
15+
16+
public $setting_request = [
17+
'name' => 'offline payments',
18+
'code' => 'offline-payments.cash.99',
19+
'customer' => 1,
20+
'order' => 1,
21+
'description' => 'description',
22+
];
23+
24+
public function testItShouldPayFromSigned()
25+
{
26+
$this->assertPaymentFromSigned();
27+
}
28+
29+
public function testItShouldPayFromPortal()
30+
{
31+
$this->assertPaymentFromPortal();
32+
}
33+
}

0 commit comments

Comments
 (0)