浏览代码

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文夹下,建立对应对名文件夹,一个方法对应一个测试文件