laravel-test-generator
laravel-test-generator copied to clipboard
Auto generate laravel unit test file based on the routes and form request files
 Please upgrade 8.1
Changed faker require and arr and str functions
**What happened?** I wanted to install **laravel-test-generator** using composer, but the following incompatibilities occurred, making it impossible to use it. > Problem 1 > - Root composer.json requires fakerphp/faker 1.8,...
i have just install laravel 7.4 test generator when run php artisan laravel-test:generate show the error ** Class 'Bepsvpt\SecureHeaders\SecureHeadersServiceProvider' not found
i have just install laravel 7.0 test generator when run php artisan **laravel-test:generate** show the error **Call to undefined function Vigneshc91\LaravelTestGenerator\starts_with() at C:\laragon\www\sinau\laravelapinasabah\vendor\vigneshc91\laravel-test-generator\src\Generator.php:138** **protected function getRouteUri(Route $route) 135▕ { 136▕...
https://github.com/vigneshc91/laravel-test-generator/issues/6#issuecomment-780384753
Hi For `assertStatus` it would be more clean if the consts of `Illuminate\Http\Response` were used instead of integers. #### Example `$response->assertStatus(200);` -> `$response->assertStatus(Response::HTTP_OK);` `$response->assertStatus(400);` -> `$response->assertStatus(Response::HTTP_NOT_FOUND);` `$response->assertStatus(422);` -> `$response->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY);`
When running the command ``laravel-test:generate` files will have duplicate methodNames, I Havent had the time looking for the problem but here the only thing I would assume is that it...
Take this validation request as an example: ```php public function rules() { return [ 'organisation_id' => ['required', Rule::in(Organisation::pluck('id'))], 'name' => ['required'], 'function' => ['required'], 'email' => ['nullable', 'mail'], 'phone1' =>...
My TicketAPIController does no have or need a create() functions... how can we skip that?