artisan('make:crud', ['name' => 'Item', '--no-interaction' => true]); $this->assertFileExists(app_path('Item.php')); $ctrlClassContent = "assertEquals($ctrlClassContent, file_get_contents(app_path('Http/Controllers/ItemsController.php'))); exec('rm '.app_path('Item.php')); exec('rm -r '.app_path('Http')); exec('rm '.database_path('migrations/*')); exec('rm -r '.resource_path('views/items')); exec('rm -r '.base_path('tests/Feature')); exec('rm -r '.base_path('tests/Unit')); } }