LD 5 лет назад
Родитель
Сommit
44461e8a90
27 измененных файлов с 25 добавлено и 24 удалено
  1. 1 1
      tests/Services/CacheService/GetOrExecuteTest.php
  2. 1 1
      tests/Services/CommodityBarcodeService/InsertMany_onCommoditiesTest.php
  3. 2 2
      tests/Services/CommodityService/SyncBarcodesTest.php
  4. 1 4
      tests/Services/OracleDOCOrderHeaderService/GetWMSOrderOnStartDateTest.php
  5. 1 3
      tests/Services/OracleDOCOrderHeaderService/GetWmsOrderOnStartDateEditTest.php
  6. 1 1
      tests/Services/OracleDOCOrderHeaderService/GetWmsOrderOnstartDateCreateTest.php
  7. 0 5
      tests/Services/OrderPackageCommoditiesService/RegroupOrderCommoditiesTest.php
  8. 0 1
      tests/Services/OrderPackageService/SyncOrderPackageTest.php
  9. 0 1
      tests/Services/OrderPackageService/SyncPackageByOrderHeadersTest.php
  10. 0 1
      tests/Services/OrderService/FindOrCreateByClientCodeTest.php
  11. 0 4
      tests/Services/OrderService/SyncOrderTest.php
  12. 18 0
      tests/Unit/EchoTest.php
  13. 0 0
      tests/old/CarTypeTest.php
  14. 0 0
      tests/old/CarrierTest.php
  15. 0 0
      tests/old/CityTest.php
  16. 0 0
      tests/old/ExampleTest.php
  17. 0 0
      tests/old/FULXProcessTest.php
  18. 0 0
      tests/old/MeasureMonitorTest.php
  19. 0 0
      tests/old/MeasuringMachineTest.php
  20. 0 0
      tests/old/PackageTest.php
  21. 0 0
      tests/old/PaperBoxTest.php
  22. 0 0
      tests/old/ProvinceTest.php
  23. 0 0
      tests/old/UnitTest.php
  24. 0 0
      tests/old/WaybillFinancialExceptedTest.php
  25. 0 0
      tests/old/WaybillFinancialSnapshotTest.php
  26. 0 0
      tests/old/WaybillPriceModelTest.php
  27. 0 0
      tests/old/WaybillTest.php

+ 1 - 1
tests/Services/CacheService/GetOrExecuteTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\CacheService\GetOrExecuteTest;
+namespace Tests\Services\CacheService;
 
 use App\Services\CacheService;
 use Illuminate\Support\Facades\Cache;

+ 1 - 1
tests/Services/CommodityBarcodeService/InsertMany_onCommoditiesTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\CacheService\GetOrExecuteTest;
+namespace Tests\Services\CommodityBarcodeService;
 
 use App\Commodity;
 use App\CommodityBarcode;

+ 2 - 2
tests/Services/CommodityService/SyncBarcodesTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\CacheService\GetOrExecuteTest;
+namespace Tests\Services\CommodityService;
 
 use App\Commodity;
 use App\CommodityBarcode;
@@ -11,7 +11,7 @@ use Illuminate\Database\Eloquent\Collection;
 use Illuminate\Support\Facades\Cache;
 use Tests\TestCase;
 
-class InsertMany_onCommoditiesTest extends TestCase
+class SyncBarcodesTest extends TestCase
 {
 
     /** @var CommodityService $service */

+ 1 - 4
tests/Services/OracleDOCOrderHeaderService/GetWMSOrderOnStartDateTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\OracleDOCOrderHeaderService\GetWMSORderOnStartDateTest;
+namespace Tests\Services\OracleDOCOrderHeaderService;
 
 use App\Services\OracleDOCOrderHeaderService;
 use Carbon\Carbon;
@@ -22,12 +22,9 @@ class GetWMSOrderOnStartDateTest extends TestCase
     public function testGetWMSOrderOnStartDate()
     {
         $carbon =Carbon::now()->subSeconds(10);
-        var_dump(Carbon::now());
         $orderHeaders = $this->service->getWMSOrderOnStartDate($carbon);
-        var_dump(Carbon::now());
         $this->assertNotNull($orderHeaders);
         $orderHeader = $orderHeaders->first();
-        var_dump($orderHeader->toArray());
         $this->assertNotNull($orderHeader->oracleDOCOrderDetails);
         $this->assertNotNull($orderHeader->actAllocationDetails);
         $this->assertNotNull($orderHeader->oracleBASCustomer);

+ 1 - 3
tests/Services/OracleDOCOrderHeaderService/GetWmsOrderOnStartDateEditTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\OracleDocOrderHeaderServie\GetWmsOrderOnStartDateEditTest;
+namespace Tests\Services\OracleDOCOrderHeaderService;
 
 use App\Services\OracleDOCOrderHeaderService;
 use Carbon\Carbon;
@@ -22,9 +22,7 @@ class GetWmsOrderOnStartDateEditTest extends TestCase
     public function testGetWmsOrderOnStartDateEdit()
     {
         $carbon =Carbon::now()->subHours(10);
-        var_dump(Carbon::now());
         $orderHeaders = $this->service->getWmsOrderOnStartDateEdit($carbon);
-        var_dump(Carbon::now());
         $this->assertNotNull($orderHeaders);
         $orderHeader = $orderHeaders->first();
         if($orderHeaders->count() == 0){

+ 1 - 1
tests/Services/OracleDOCOrderHeaderService/GetWmsOrderOnstartDateCreateTest.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Tests\Services\OracleDOCOrderHeaderService\GetWmsOrderOnStartDateCreateTest;
+namespace Tests\Services\OracleDOCOrderHeaderService;
 
 use App\OracleDOCOrderHeader;
 use App\Services\OracleDOCOrderHeaderService;

+ 0 - 5
tests/Services/OrderPackageCommoditiesService/RegroupOrderCommoditiesTest.php

@@ -37,16 +37,11 @@ class RegroupOrderCommoditiesTest extends TestCase
         $date = '2020-06-18 18:13:50';
         $orderHeaders = $this->orderHeaderService->getWMSOrderOnStartDate($date);
         if($orderHeaders->count()==0){
-            var_dump('查询数据为空');
             return;
         }
         $order_nos = Order::all()->map(function($order){
             return $order->code;
         });
-        dd(Order::all()->map(function($order){
-            return $order->created_at;
-        }));
-
         $order_nos = data_get($orderHeaders,'*.orderno');
         $order_commodities = OrderPackageCommodities::query()->with(['commodity','package.order'])->whereHas('package',function($query)use($order_nos){
             $query->whereHas('order',function ($query)use($order_nos){

+ 0 - 1
tests/Services/OrderPackageService/SyncOrderPackageTest.php

@@ -38,7 +38,6 @@ class SyncOrderPackageTest extends TestCase
         $date = '2020-09-18 18:13:50';
         $orderHeaders = $this->orderHeaderService->getWMSOrderOnStartDate($carbon);
         if($orderHeaders->count()==0){
-            var_dump('查询数据为空');
             return;
         }
         $orders = $this->orderService->getByWmsOrders($orderHeaders);

+ 0 - 1
tests/Services/OrderPackageService/SyncPackageByOrderHeadersTest.php

@@ -37,7 +37,6 @@ class SyncPackageByOrderHeadersTest extends TestCase
         $date = '2020-09-18 18:13:50';
         $orderHeaders = $this->orderHeaderService->getWMSOrderOnStartDate($carbon);
         if ($orderHeaders->count() == 0) {
-            var_dump('查询数据为空');
             return;
         }
         $this->service->syncPackageByOrderHeaders($orderHeaders);

+ 0 - 1
tests/Services/OrderService/FindOrCreateByClientCodeTest.php

@@ -23,7 +23,6 @@ class FindOrCreateByClientCodeTest extends TestCase
     {
         $clientCode = OracleDOCOrderHeader::query()->first()->soreference1;
         $order =  $this->service->findOrCreateByClientCode($clientCode);
-        var_dump($clientCode,$order);
         $this->assertNotEmpty($clientCode);
         $this->assertNotEmpty($order);
         $this->assertNotEmpty($order->client_code);

+ 0 - 4
tests/Services/OrderService/SyncOrderTest.php

@@ -47,7 +47,6 @@ class SyncOrderTest extends TestCase
     {
         $carbon =Carbon::now()->subHours(1);
         $date = '2020-05-18 18:13:50';
-        var_dump(((string)Carbon::now()));
         //   SO201112029795
 //        $orderHeader = $this->orderHeaderService->getWMSOrderOnStartDate($carbon);
         $orderHeader = OracleDOCOrderHeader::query()->selectRaw(implode(',',OracleDOCOrderHeaderService::$columns))
@@ -64,11 +63,8 @@ class SyncOrderTest extends TestCase
 //            ->where('orderno','SO201112029795')
             ->where('DOC_Order_Header.addTime','>=',$carbon)
             ->get();
-        var_dump($orderHeader->count());
-        var_dump((string)Carbon::now());
 
         $this->service->syncOrder($orderHeader);
-        var_dump((string)Carbon::now());
 
         $order = $this->service->getByWmsOrders($orderHeader);
         $this->assertNotNull($order);

+ 18 - 0
tests/Unit/EchoTest.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace Tests\Unit;
+
+use App\Services\CacheService;
+use Illuminate\Support\Facades\Cache;
+use Tests\TestCase;
+
+class EchoTest extends TestCase
+{
+
+
+    public function testEcho(){
+        echo "abc3213123\n";
+        $this->assertEquals(3,2);
+    }
+
+}

+ 0 - 0
tests/Unit/CarTypeTest.php → tests/old/CarTypeTest.php


+ 0 - 0
tests/Unit/CarrierTest.php → tests/old/CarrierTest.php


+ 0 - 0
tests/Unit/CityTest.php → tests/old/CityTest.php


+ 0 - 0
tests/Unit/ExampleTest.php → tests/old/ExampleTest.php


+ 0 - 0
tests/Unit/FULXProcessTest.php → tests/old/FULXProcessTest.php


+ 0 - 0
tests/Unit/MeasureMonitorTest.php → tests/old/MeasureMonitorTest.php


+ 0 - 0
tests/Unit/MeasuringMachineTest.php → tests/old/MeasuringMachineTest.php


+ 0 - 0
tests/Unit/PackageTest.php → tests/old/PackageTest.php


+ 0 - 0
tests/Unit/PaperBoxTest.php → tests/old/PaperBoxTest.php


+ 0 - 0
tests/Unit/ProvinceTest.php → tests/old/ProvinceTest.php


+ 0 - 0
tests/Unit/UnitTest.php → tests/old/UnitTest.php


+ 0 - 0
tests/Unit/WaybillFinancialExceptedTest.php → tests/old/WaybillFinancialExceptedTest.php


+ 0 - 0
tests/Unit/WaybillFinancialSnapshotTest.php → tests/old/WaybillFinancialSnapshotTest.php


+ 0 - 0
tests/Unit/WaybillPriceModelTest.php → tests/old/WaybillPriceModelTest.php


+ 0 - 0
tests/Unit/WaybillTest.php → tests/old/WaybillTest.php