can't make phpunit configurations to work with DatabaseMigrations trait

here is my phpunit.xml file : <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false...
04

TokenMismatchException in Unit Tests

I am getting a TokenMismatchException when I try to test a post request. Laravel should disable csrf when running tests. I've inspected the...
06

My tests run super slow

When I run testsuite on Homestead machine, it looks like this: PHPUnit 6.3.0 by Sebastian Bergmann and contributors. .................
02

need help with factory test and phpunit

$roles = factory(App\Role::class, 5)->create(); $tags = factory(App\Tag::class, 20)->create(); when i run phpunit, i...
03

Dusk not working on https

I’m using homestead for my dev environment. But I can’t get Dusk to work with it because the chromium-browser doesn’t seem to trust the self-...
02

How to use sqlite when testing Lumen.

Hi, I am wondering how do to this with Lumen because there is no database.php? <env name="APP_ENV" value=&qu...
17

Testing with BitBucket Pipelines

Has anyone managed to get a pipeline setup in BitBucket that will automatically install and configure their Laravel application and then run a seri...
09

Rephrasing test.

Any suggestions on how to improve on the naming of the variables in this test or maybe I need to re-write the assertion. Problem is a championship...
00

After running php artisan config:cache phpunit issue

Hi, I'm not 100% sure but I guess after running php artisan config:cache in testing mode I get an error about 'PRAGMA foreign_k...
02

Dusk configuration; I’m doing something wrong

It’s the weekend. I shouldn’t be working, but I am! I’m trying to get some Dusk tests running, but having issues with environments....
09

Dusk: "These credentials do not match our records"

Hello! I'm not 100% sure what's wrong with my setup. I've confirmed manually that my authentication works. It's just that Dusk keeps spoutin...
04

Laravel:dusk is very slow

Hi, i'm using laravel 5.5 with Dusk 2.* for browser tests. But the test's a very slow, so before one(!) tests starts, it takes ~ 10 seconds...
02

How to test Symfony Process inside a queued job?

Hello there, I am relatively new to testing and so... I have this inside a queued job: public function handle() {...
03

Mockery - How to mock a class? (Somehow it still fires the "real" methods)

I feel bad asking, but I'm a bit confused with mockery. Sometimes it works perfectly but right now, I cannot get it to work. It should not b...
02

Overriding values in model factories

Quick question, Having these model factory: $factory->define(Api\Country::class, function(Faker\Generator $faker) { re...
04

ParticipateInThreadsTest Error

I am following along on the Laravel Forum With TDD series. I have ran upon an issue where i get an error with the a_reply_requires_a_body test:...
07

Dusk: Curl error thrown for http POST

Hey, I'm having some (seemingly random) problems with Dusk. I'm getting the following error, however I do not understand what it means, can someone...
01

Factory created ok but failling when tested

This return error when tested and I can't find the reason. Tests\Feature\QuizPageTest::test_user_quiz_id_is_created_when_user_answer_f...
02

sqlite in-memory doesn't seem to be migrating DB before running tests

Laravel Version 5.2. PHP 7.0. I have a system that was setup to use MySQL with transactions for the test suite, but I hate that setup and I'...
02

PHPUnit Testing: Post Request returning "The page has expired due to inactivity" view

I'm testing a simple post request to store a Favorite in my database. I have it set up so that the login view, which has the "...
00