Fatal error: Class 'Tests\TestCase' not found in /usr/share/nginx/html/NN19030510/tests/Feature/User

1、composer.json 添加 tests/TestCase.php

"autoload": {
    "classmap": [
      "database/seeds",
      "database/factories",
      "app/Handle",
      "tests/TestCase.php" // 添加
    ],
}

2、新建tests/TestCase.php文件

make(Kernel::class)->bootstrap();

        return $app;
    }
}

 

你可能感兴趣的:(php,composer)