unknown error: cannot find Chrome binary Using laravel Dusk and Valet

So i've tried to use dusk and follow the instruction at the official documentation, when i try to run php artisan dusk i've got this f...
00

how to test that mail body contains some text?

how can I test if mail body contains a link for example? I use laravel 5.3 public function we_can_send_email_verification_email_to_e...
02

Laravel mix and phpUnit

Is there any way to run phpunit tests with Laravel Mix? Something like gulp tdd in Elixir...
08

Testing Validation

Greetings, In my app, when a user registers, there's validation for many fields and most of them are the same 'required|string'. My question...
01

Working with Model Factory dates for tests

I'm trying to figure out what I can do to my model factory file so that my dates can work better together for my valid scope. Can anyone give some...
01

Homestead Laravel 5.4 db:seed segmentation fault.

Hello, I have the latest vagrant box (2.1.0) am running laravel 5.4 project. For the first time ever, I have received a segmentation fault (core d...
02

Laravel Dusk with Session Data

I have some middleware that checks certain things for the user. If the user is logged in normally, this stuff is loaded into the session. Logging t...
03

Testing Controllers, Repositories & Gateways in Laravel 5.4

I'm building a web app which interacts with a Google API (specifically the Google Directory API). My app is currently structured like this:...
00

DatabaseMigrations has stopped working all of a sudden

All of a sudden our tests started failing today, but yesterday were working fine. Pretty much all of them were reporting that the users table does...
00

Testing image upload but it fails when I add validation rule

I am testing image upload via PHPunit by calling a route (/admin/articles) which uses a controller (ArticleController) to upload an image....
01

Browser testing on Laravel with React front-end

Hello guys, Has anyone tried testing a React front-end with Dusk??...
00

Are These Tests Okay?

Hello, I'm very new to testing and was wondering if I'm headed in the correct directions with these kinds of feature tests? public f...
03

Running a single test with PHPStorm opens it in the browser

Hi, I'm having a problem here with PHPUnit testing on PHPStorm. When clicking 'Run' the tests directory, it does what I expect and runs it a...
00

Dusk: Two tests not working together, but individually.

I have a Dusk test file with the following content: <?php namespace Tests\Browser; use Illuminate\Support\Facades\Auth; use Tes...
00

phpunit - $this->post fails but $this->json works

I'm implementing an API and writing some tests but I'm running into some issues with the request data (or at least I think so). I've a...
03

How to test a 'store' function with optional JSON payload?

Hi. How do you test in situations when there are just too many variations to try out? Imagine you are writing a feature test "user can...
00

Delete foreign key with migrate reset?

Delete foreign key with migrate reset?...
02

Getting false positive failures on unique fields

Perhaps the issue is more about my workflow setup, rather than the test itself. See, I seed the terms table in my dev database...
02

Advice required for testing using selenium in Laravel 5.2

I have currently written various tests using phpunit in Laravel 5.2. These are serving me well and provide me with much more confidence my app is w...
08

Testing with user roles

Hey guys! I have some actions in my controller which can only be accessed if the logged in user hase one of these roles: admin, planning, pr...
03