Replies: 1 comment 1 reply
-
Moving to discussions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
In my feature tests I like to dump the response to help with debugging. I had a test that kept getting the error
Unable to locate factory
but if I removed the dump it would work. I am not sure if this is a Laravel bug, Symfony VarDumper bug or maybe a bug with facade/ignition but thought I'd start with Laravel and see if anybody has ideas on what is going on.Steps To Reproduce:
I was able to reproduce the issue in a fresh Laravel 7 app. Here are steps to reproduce.
Create
tests/Feature/DumpTest.php
like thisRun
php artisan test
and it will fail.Run
./vendor/bin/phpunit tests/Feature/DumpTest.php
and it will fail.Run
./vendor/bin/phpunit tests/Feature/DumpTest.php --filter two
and it will pass.Comment out the
->dump()
and runphp artisan test
and it will pass.I also noticed if I go into
vendor/facade/ignition/src/DumpRecorder/DumpRecorder.php
in theregister()
method and comment out the following that the test will pass.Beta Was this translation helpful? Give feedback.
All reactions