| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- declare(strict_types=1);
- namespace SixShop\Lakala\Service;
- use PHPUnit\Framework\Attributes\Test;
- use PHPUnit\Framework\TestCase;
- use SixShop\Lakala\Enum\UploadFileTypeEnum;
- use SixShop\Payment\Enum\NumberBizEnum;
- class MMSServiceTest extends TestCase
- {
- private MMSService $mmsService;
- protected function setUp(): void
- {
- $this->mmsService = app(MMSService::class);
- }
- #[Test]
- public function cardBin()
- {
- $ret = $this->mmsService->cardBin(generate_number(NumberBizEnum::WITHDRAWAL, 5), '16227003321580073323');
- dump($ret);
- }
- #[Test]
- public function uploadFile()
- {
- $this->mmsService->uploadFile(
- generate_number(NumberBizEnum::WITHDRAWAL, 5),
- UploadFileTypeEnum::MERCHANT_PHOTO,
- 'pdf',
- 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
- );
- }
- }
|