Ver Fonte

test artisan 文件名顺序

LD há 5 anos atrás
pai
commit
f5fd38db36
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Console/Commands/TestMakeCommand.php

+ 1 - 1
app/Console/Commands/TestMakeCommand.php

@@ -52,7 +52,7 @@ class TestMakeCommand extends \Illuminate\Foundation\Console\TestMakeCommand
     protected function getMethodName()
     protected function getMethodName()
     {
     {
         $input= trim($this->argument('name'));
         $input= trim($this->argument('name'));
-        return '\Test'.ucfirst(explode(':',$input)[1]);
+        return ucfirst(explode(':',$input)[1]).'Test';
     }
     }
 
 
     protected function getStub()
     protected function getStub()