Support the ongoing development of Laravel.io →

535 Threads

posted 5 years ago

Dusk tests failing on CircleCI, cant figure out why.

Hello! We have been using Dusk for browser testing for a while now and everything was fine so far. W...

0 Likes
0 Replies

Error : Class 'DB' not found in phpunit test for a Seeder

I am trying to create a unit test for my db seeder, which looks like this: <?php use Illuminate\...

0 Likes
1 Replies

Laravel Repository pattern

How to write unit test in laravel 5.6. I am using repository pattern. My app performsemphasized text...

0 Likes
1 Replies

Error while using factory in phpunit test classes

When I use Factories in a test class in phpunit, field value doesn't insert into database. It return...

0 Likes
1 Replies

Unit Testing Views?

So I've been going through a lot of the testing tutorials on the net, especially on LaraCast, and ha...

0 Likes
2 Replies

Testing GuzzleHttp requests

I have an artisan command that requests data from an external API and stores that information in my...

0 Likes
0 Replies

Cannot override model factories default

I can't workout why I cannot override the values specified in my ModelFactory.php file, from within...

0 Likes
6 Replies

[SOLVED]Adding Foreign Key :: Migrations

Before I start, I ask politely, that you forgive me as I struggle to put things into words. Sufferin...

0 Likes
2 Replies

Lumen 5.5 - Testing and mocking repositories

Hi all, I am having a hard time to test my rest api app, I think the main reason is because of https...

0 Likes
0 Replies
posted 10 years ago

TestCase tests unable to make multiple call()

I have a class that extends TestCase. I had a setUp() that was doing a $this->call(...) and then...

0 Likes
11 Replies

PHP God Game training

Hi guys I'm due to give a training on agile software development in PHP in a couple of weeks - not L...

0 Likes
1 Replies

Best option , Laravel Many to Many or Not

Hello guys , does some one could help me ? I am developing a real estate website , something like th...

0 Likes
2 Replies

Fake session object for dummy user

I want to create fake session for dummy user in Test

0 Likes
0 Replies

502 Bad Gateway

Hi Folks! I'm using Laravel Valet for the quick preview of my project. But now whenever I'm trying t...

0 Likes
1 Replies

unable to test filesystem temporaryUrl

Laravel Version: 5.5.11 PHP Version: 7.1 Database Driver & Version: MySQL Description: I have...

0 Likes
0 Replies
posted 8 years ago

Why does PhpUnit not display stack trace for application errors?

Hi Guys! I have a controller with a create method that returns a view which doesn't exist. I get the...

0 Likes
4 Replies

File is not being deleted in tests when using deleteFileAfterSend

I am testing that a file is remove after a response download as below: UploadedFile::fake() ->...

0 Likes
0 Replies

Testing Controllers, FormRequests, Policies, etc

Hi everybody, I just started studyng the fabulous world of automated testing. Main concepts seems pr...

0 Likes
2 Replies

Test input arrays in laravel 5.5 ignore empty or null input values

I am currently testing a championship tree with 16 competitors. Each competitor can be updated via a...

0 Likes
0 Replies

PHPUnit fails to count with group by on query to the database view (not table)

Laravel Version: 5.4.* PHP Version: >=5.6.4 Database Driver & Version: MySQL (Testing with S...

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.