| 1234567891011121314151617181920212223242526 |
- <?php
- namespace SixShop\Lakala\Service;
- use PHPUnit\Framework\TestCase;
- use SixShop\Lakala\Dto\LocationInfo;
- use SixShop\Payment\Enum\NumberBizEnum;
- class TransactionServiceTest extends TestCase
- {
- private TransactionService $transactionService;
- protected function setUp(): void
- {
- $this->transactionService = app(TransactionService::class);
- }
- public function testPreOrder()
- {
- $this->transactionService->preOrder(
- outTradeNo: generate_number(NumberBizEnum::ORDER_PAY),
- totalAmount: .01,
- locationInfo: new LocationInfo(requestIP: '127.0.0.1'),
- subject: '测试订单',
- );
- }
- }
|