소스 검색

WAS项目规范补充
namespace修改

LD 5 년 전
부모
커밋
aaf03dcab1
2개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 9
      tests/CacheService/GetOrExecuteTest/GetOrExecuteTest.php
  2. 1 0
      文档/WAS项目规范.md

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

@@ -1,18 +1,10 @@
 <?php
 
-namespace Tests\Unit;
+namespace Tests\CacheService\GetOrExecuteTest;
 
-use App\Authority;
-use App\Carrier;
-use App\Role;
 use App\Services\CacheService;
-use App\User;
 use Illuminate\Support\Facades\Cache;
-use Illuminate\Support\Facades\DB;
-use Ramsey\Uuid\Uuid;
 use Tests\TestCase;
-use Illuminate\Foundation\Testing\WithFaker;
-use Illuminate\Foundation\Testing\RefreshDatabase;
 
 class GetOrExecuteTest extends TestCase
 {

+ 1 - 0
文档/WAS项目规范.md

@@ -78,6 +78,7 @@
 
 ##GIT
 	每个需求描述完成时,要执行一个Commit并在描述中阐明。
+	每个需求修改提交一个commit
 ##测试
     每个Service方法均需写一个对应的测试
     每个Service在Tests,Services文夹下,建立对应对名文件夹,一个方法对应一个测试文件