|
- <?php
-
- namespace Tests\Feature\Http;
-
- use App\Transmission\Layouts\Code\QRTypeCode;
- use App\Util\DateUtil;
- use Tests\TestCase;
-
- /**
- * @group IF24-02
- */
- class IF24_02Test extends TestCase
- {
-
- protected function tearDown(): void
- {
- parent::tearDown();
- }
- protected function setUp(): void
- {
- parent::setUp();
- }
-
- /**
- * A basic feature test example.
- */
- public function test_IF21_01(): void
- {
-
- $res = $this->post('/Adjust/CheckQRDiscountTicket', [
- "Header" => [
- "CustomerCode" => "9990",
- "ParkingManagementCode" => "90005",
- "AdjusterSerialNo" => 1,
- "SendDatetime" => DateUtil::now()->format('YmdHis'),
- "ResultCode" => "100",
- "InterfaceID" => "IF24-01",
- ],
- "Body" => [
- "QRCodeType" => QRTypeCode::方式2_印字方式->value,
- "PublishingTerminalCode" => "01",
- "PublishingDate" => DateUtil::now()->format('Ymd'),
- "PublishingNo" => 3,
- "ShopNo" => 10,
- "DiscountTicketCode" => 30,
- "AdjustDatetime" => DateUtil::now()->format('YmdHi'),
- "DiscountAmount" => 300,
- ]
- ]);
-
- $this->assertEquals("100", $res->json("Header.ResultCode"));
- }
- }
|