0 Best Reply Awards

  • Member Since 1 Year Ago
  • 82 Lessons Completed
  • 5 Favorites

21st December, 2017

TesterP left a reply on Dusk Test Does Not See Database Update • 8 months ago

Could it be a timing issue? That the database is checked before the result of the verification has been stored there? In the artisan dusk output you see that the user has been stored, but not yet verified.

Try adding a small delay before you check the db and see if that makes a difference.


I have noticed that sometimes Dusk is running so fast that it feels like it is ahead of itself.


TesterP left a reply on Dusk L55 Headaches With Database Test • 8 months ago


I have read in several places that DatabaseTransactions doesn't work with Dusk, you would need to use DatabaseMigrations.

Can't help you with the first part, unfortunately. Hope you are able to sort that one out or find someone else that can help you. I struggled with database connections as well and eventually one of the developers at my company managed to fix it for me.

Tester P.

26th October, 2017

TesterP left a reply on Disabling Always_populate_raw_post_data In Php.ini Does Not Work • 10 months ago

@ahmadbadpey Did you ever solve this?

I have the same problem. I also uncommented always_populate_raw_post_data = -1 in php.ini both in C:\wamp\bin\php\php5.6.31 and C:\wamp\bin\apache\apache2.4.27\bin. After restarting Apache I still get the same error messages. I can log in to my application, but parts of it isn't working and I don't know if it is because of this.

Using Windows 10.

6th October, 2017

TesterP started a new conversation Dusk - Use DatabaseMigrations With MongoDB • 11 months ago

Has anyone got migration to work in Dusk with a MongoDB? Any special tricks needed?

I have a Mongo database with loads of data, including users with different roles and access to different parts of the data.

Instead of creating everything from scratch for every test, I want to use this database and I want to roll back to the original db afterwards (or before each test).

I read that database transactions doesn't work with Dusk, but I can't get database migration to work either.

When I add "use DatabaseMigrations;" at the beginning of a test class, all my tests get RuntimeException: aborted

Using Dusk 1.1

24th September, 2017

TesterP left a reply on Passing A Variable To The Page Url In Dusk • 11 months ago

For me it was easier to pass in an id, not an object. Modified the code to something similar to this:

public function __construct($id) ... public function url() { return '/users/' . $this->id . '/edit'; }

Working brilliantly. Thanks @slewis for showing your solution. Helped me a lot.

Edit Your Profile

Want to change your profile photo? We pull from gravatar.com.