Laravel testing select not working

Hello, I am making a test to verify if my customer create form works. The country select is popupated using an view composer. When I run the...
06

Has any got Dusk to work with Bitbucket Pipelines?

I've been trying to get Laravel Dusk working correctly with Bitbucket pipelines. Here's what my current configuration files looks like:...
00

PhP Unit, risky test? What's the cause of it and how to avoid

Hi, I followed documentation for laravel php unit tests on laravel website. However, the tests I have give me this output: PH...
08

Lumen: using "seeJson()" reports "This test did not perform any assertions"

Hey all, I'm testing an API with the test infrastructure provided by lumen. The test is basically something like: $this->j...
01

Populating database with images with Faker

I want to populate my database with images and in my UserFactory.php I have: 'picture' => $faker->image('public/storage/image...
20

Model Factories and Relationships for Testing

I have a whole list of data that is being passed through in the request however only partial of the data should be added to the initial Model and t...
00

Testing delete method in phpunit, "Expected status code 200 but received 419."

Hi everyone, I want to test the delete method but I am not getting the expected results from PHPUnit. I receive this message when running the test:...
05

Undefined property: Tests\Path\ToMy\TestClase::$baseUrl

HI today I've updated my project and saw that laracasts/integrated package was moved in laravel. After update I'm getting this kind of error...
09

DUSK Passing vars to determine headless or chromedriver

Hello I have a route that calls my controller - testController.php and in the controller I'm grabing the request variable from the querystri...
02

Better error messages

Hey! I'm following Adam Wathan's Test-Driven Laravel course and it looks great. It seems to be using Laravel 5.3, though. Assertions like vi...
03

Testing logics

Now looking videos about testing and try to implement new knowledges into my existing project. But I'm still new in unit testing. So would to know...
03

Installing Laravel Dusk - Failed to connect on localhost port 9515: connection refused

I'm trying to install Laravel Dusk following the documentation here:...
11

Testing Algolia

Hi there! Right now I am facing the problem to test algolia in my project. I have a model with the Searchable Trait and want to check...
03

Help figuring out how to test on demand notification

Hello Everyone. I have a slack notification class that sends a message inside our company slack, in a specific channel, every time an user p...
02

Problem testing Passport password grant

I am working on API authentication via Laravel Passport password grant based on this article:...
01

How to test that simple case? with Mockery

How to test that simple case? class Foo { public function m1(){ return $this->m2(); } private function m2()...
03

app() vs $app->make()

At my work it was recently decided to use app() to new up classes. In one of Jeffreys videos I saw him replacing app() by loading the Application c...
01

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...
02

Invoking the Artisan Dusk command outside the CLI

Hello Guys, I can't seem to figure out how to run the Artisan Dusk Command via route. I have the following but doesn't work...
21

How to disable headless mode in Laravel 5.5 (Dusk 2.0)?

Now Laravel 5.5 uses Dusk 2.0 with headless mode active by default. Anybody know how to change this to execute Laravel Dusk tests like before (seei...
02