Support the ongoing development of →

629 Threads

11 Aug, 2021 at 01:52

[Laravel 6.20] - Issue trying to assert Response structur

Laravel Version: 6.20.30 PHP Version: 7.2.8 Database Driver & Version: Mysql 5.7 Description:...

0 Likes 0 Replies

Method is not supported on HTTP Test API

I'am trying to test my login API with TestCase. The dump of response of PHPunit is: R{#1553 +"t...

0 Likes 3 Replies

Is there a sexyer way to write this code? (Laravel/Scout)

Hi everyone, name is Lucas, first post here and I'm learning Laravel and loving it. I'm working in a...

1 Likes 1 Replies

How to code for validating multiple data with similar parame

These are my API

0 Likes 0 Replies

How do i make a download button that appears after 5 seconds

l Hey Guys I Am Making Download Buttom Appearf 5 Second But Code Not Working,I have added a download...

0 Likes 1 Replies

Passport test logout after actingAs

How can I test logout using passport after actingAs? Token revoke doesn't seem to work

0 Likes 0 Replies

assertSee failing when searching for text on datatable

Dusk Version: 6.4 Laravel Version: 6.2 PHP Version: 7.3 Database Driver & Version: mysql Ver...

1 Likes 0 Replies

Testing validation rule exists

Hello, I have a form request class with a validation rule that looks like this 'array.*.type' =>...

0 Likes 1 Replies

Mocking Notification failed to sent notification

I want to fake notification but always it asserting false and say The expected [App\Notifications\Ne...

1 Likes 2 Replies

"Class view does not exist", phpunit with code coverage

I'm trying to add the code-coverage report feature for phpunit in Laravel 6 by following the tutoria...

0 Likes 0 Replies

Trying to get property 'headers' of non-object

Hello i have installed 2fa on my code and when i enable that on user. i get error and i cant view an...

0 Likes 1 Replies

How to Set Cookies During Unit Test? (new solution)

I had the same problem working with laravel in version 5.5 presented in the thread erkanarslan, howe...

1 Likes 1 Replies
7 Mar, 2020 at 11:44

Strange behavior while testing

`$ad = Ad::create([ 'title' => 'This is first ad', 'body' => '', ]); dump($ad->title);...

0 Likes 1 Replies
3 Mar, 2020 at 10:43

How to mock a class and call constructor wit arguments?

No matter what I do, the constructor of the mocked class isn't called. The constructor has one param...

0 Likes 0 Replies

Laravel 6 Multi Tenancy

I want to create a laravel app with multiple users but I can not find a simple way to do so. Is ther...

0 Likes 1 Replies

Connection refused for mysql in gitlab-ci for Laravel 6

I created tests with relation the database. I setting up the gitlab-ci.yml for Laravel. When the fil...

0 Likes 0 Replies

Auth::user() returns null in test with data provider

I am testing my application (5.8) with the integrated PHPUnit configuration and I have problems with...

0 Likes 2 Replies

Unit Test temporaryUrl

I got an error when im running the unit testing when i add temporaryUrl on retrieving file from s3 ....

0 Likes 0 Replies
25 Oct, 2019 at 10:47

Performance testing

Hello, I'm new here and this is my first thread here, becouse I'm slowly getting desperate about a t...

0 Likes 0 Replies
25 Sep, 2019 at 12:37

How to test multiple file upload

Laravel 6 PHP 7.3 I'm trying to test upload multiple files $this->postJson('/products', [ '...

0 Likes 0 Replies

Thanks to our community

Solutions given in the past year.


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2021 - All rights reserved.