Clean up tests, test only the important things.

This commit is contained in:
James Cole
2019-04-12 04:53:18 +02:00
parent 6f063a134f
commit 5ac39dbdef
65 changed files with 464 additions and 4016 deletions

View File

@@ -45,6 +45,8 @@ class PreferenceController extends Controller
{
/**
* LinkTypeController constructor.
*
* @codeCoverageIgnore
*/
public function __construct()
{
@@ -76,7 +78,8 @@ class PreferenceController extends Controller
*
* @param Request $request
*
* @return JsonResponse]
* @return JsonResponse
* @codeCoverageIgnore
*/
public function index(Request $request): JsonResponse
{
@@ -111,7 +114,6 @@ class PreferenceController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
}
/**
@@ -122,6 +124,7 @@ class PreferenceController extends Controller
*
* @return JsonResponse
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
* @codeCoverageIgnore
*/
public function show(Request $request, Preference $preference): JsonResponse
{