Support the ongoing development of Laravel.io →

638 Threads

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

eminkokdemir liked this thread

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

websterl3o liked this thread

1 Likes
1 Replies
Solved

Strange behavior while testing

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

0 Likes
1 Replies
posted 4 years ago

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
posted 5 years ago

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
posted 5 years ago

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

Dusk directory vs phpunit

Hi, first time i try dusk. So i follow steps in documentation. After dusk installation, we see a new...

0 Likes
1 Replies
Solved

How to get the error description on file upload

UploadedFile {#576 ▼ -test: false -originalName: "rid_full.xlsx" -mimeType: "applicat...

0 Likes
0 Replies
posted 5 years ago

dusk performances

Hi, I'm experiencing performance problems: I'm sure my test is very simple and fine, but it fails. P...

0 Likes
6 Replies
Solved

Cancel event before propagation

I'm using Laravel events for broadcasting to pusher package (I'm using Laravel websockets, so it's n...

0 Likes
0 Replies

How do I deploy the laravel web app to cpanel

I'm slightly new to laravel and managed to build a simple website using laravel. I tried to deploy t...

0 Likes
14 Replies

Test a command is queued

I have a command, which uses the queue method on the Artisan facade. Using the Bus/Queue fakers in a...

0 Likes
0 Replies

What's your experience been working with Laravel Shift?

Hi, I'm just keen to learn what experiences others have had working with Laravel Shift (laravelshift...

0 Likes
0 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.