0 Best Reply Awards

  • Member Since 5 Months Ago
  • 48 Lessons Completed
  • 5 Favorites

26th October, 2017

TesterP left a reply on Disabling Always_populate_raw_post_data In Php.ini Does Not Work • 1 month 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 • 2 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 • 2 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.