Ver código fonte

添加测试

ajun 4 anos atrás
pai
commit
56d8fbf1b9
1 arquivos alterados com 32 adições e 0 exclusões
  1. 32 0
      tests/Services/DeliveryService/GetDeliveryTest.php

+ 32 - 0
tests/Services/DeliveryService/GetDeliveryTest.php

@@ -0,0 +1,32 @@
+<?php
+
+
+namespace Tests\Services\DeliveryService;
+
+use App\Services\DeliveryService;
+
+class GetDeliveryTest extends \Tests\TestCase
+{
+    /** @var DeliveryService $service */
+    private $service;
+    private $data = [];
+    protected function setUp(): void
+    {
+        parent::setUp(); // TODO: Change the autogenerated stub
+        $this->service = app(DeliveryService::class);
+        $this->data['printStr'] = "SO210621008542";
+    }
+
+    public function testGetDeliveryTest()
+    {
+//        $params = $this->service->getDelivery($this->data['printStr']);
+
+//        dd($params);
+        $this->assertTrue(true);
+    }
+
+    protected function tearDown(): void
+    {
+        parent::tearDown(); // TODO: Change the autogenerated stub
+    }
+}