Homestead so slow with phpunit

hello, i've got a lot of tests to run and homestead is very very slow i'm using mysql db for running tests os ubuntu 16.04 here's my...
00

Test fails, always 500 where 200 expected

Ha guys, i am trying to make some unit tests, unfortunately I always receive a 500 error where a 200 is expected. I can visit my webs...
03

Creating Model Factory Methods

I have this happening in about 4 different test methods as part of my set up for those tests and I'm trying to figure out what I can do to refactor...
05

General Error : 1 no such table Exists

why i see this error when running phpunit test 1) Tests\Feature\Item\ItemTest::it_can_see_items Illuminate\Database\QueryException:...
02

Is it possible to test an abort that was called inside a model?

Hi everyone, I want to unit test my User Model if the assignRole method would throw an error if an invalid role name was entered. The method...
02

Dusk + Vue

Has anyone ran into an issue where setting the values on a from inside a vue template and then as soon as you submit the for the form values go emp...
00

Laravel Dusk not picking up APP_URL in .env.dusk.local file

Laravel dusk does not seem to use the APP_URL set in .env.dusk.local file. This is my .env.dusk.local file: APP_URL=http://l...
00

Dusk teardown() vs. use DatabaseTransactions; etc

I've been trying to figure out how to rollback any factory built data at the end of a test but I seem to be finding conflicting documentation about...
04

"The expected [App\Jobs\ChargeBox] job was not pushed."

Hi, I've the following test scenario: public function test_box_is_charged_after_shipment_creation() { // Arrange Que...
02

PHPUNIT testing failing

phpUnit testing /** @test */ public function a_user_can_browse_single_thread() { $thread = factory('App\Thread')...
03

testing returning InvalidArgumentException when using factory

i was watching jeffries let's build a forum together to learn some testing stuff, but i got stuck with this error. Time: 142 ms, Mem...
05

Log in a user test, failed login redirects to `/` instead of back to `/login`?

I've written the following test to check incorrect credentials do not log a user in. /** @test */ public functi...
03

php unit need help

in my CategoriesController i have one method index that return view to categories page.. to open this page the user must be authenticated an...
10

No JSON answer by default, Postman error "Unexpected '<' "

Hi everyone, i'm testing my laravel project everything works fine but it doesn't return json by default, i have to add some line of code? Wh...
02

phpunit file upload: size 0 (zero)

My test makes a post request: // FileUploadTest.php $this->post( 'uri', ['file' => \Illuminate\Http\UploadedFile::fake...
02

RefreshDatabase trait doesn't refresh database

From the doc.: ###Resetting The Database After Each Test It is often useful to reset your database after each test so that data from a previ...
09

Refresh database Trait remove all data from mysql database

i just start laravel php unit but when i use Refreshdatabase Trait inside Test class, all records from mysql database get removed, although i updat...
16

Expected status code 200 but received 302.

i'm trying to perform a test to check if 1 - the user is authenticated 2 - has permission to view the requested page every time i run the t...
04

Laravel Dusk with GitLab CI/CD

Does anyone use GitLab CI/CD? I am trying to learn to use Dusk and it is working fine within my local environment (Windows 10 Home). After that I e...
01

accessing request() from $this->json call in behat

Hello, I have a strange inconsistency calling json from within behat execution where request() returns null instea...
00