on-internet
← Community

Flaky tests on laravel imports

Stack Overflow ·

To test imports on my laravel application I have written a bunch of tests. These tests worked fine in the past. I had to update one file import and now some of my tests are flaky. One of these tests: public function testUserCanImportStudentPropertiesWithErrorSuccess():void { $file = new UploadedFile(base_path('tests/files/vakkenpakket leerlingen per leerjaar met fouten.xlsx'), 'vakkenpakket leerlingen per leerjaar met fouten.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', null, true ); $user = User::role('globale admin')->first(); $request = [ 'csv'=> $file ]; $resp

Comments

Sign in or sign up to comment and upvote.

No comments yet.