Questions tagged [pestphp]

19 questions
0
votes
1 answer

How to make PestPHP boot Laravel so I can use facades such as Config?

I want to use standard Laravel facades, such as Str and Config, in my PestPHP Feature tests. Is there some concise way I can get PestPHP to do this for all of my tests in my tests/Feature directory? I thought having…
CXJ
  • 4,301
  • 3
  • 32
  • 62
0
votes
2 answers

Getting InvalidArgumentException - Unknown format from fakerphp/faker library in laravel while testing in custom testsuite using pest

I am using Pest library to write tests in laravel. I created the my-laravel-application/tests/Integration directory in laravel and defined a new test suite in phpunit.xml
Gandalf
  • 2,921
  • 5
  • 31
  • 44
-1
votes
1 answer

How to test Laravel Api (only) Controllers with PEST Php testing?

I've setup a backend only Laravel app from the boilerplate. I want to test the API controllers using Pest, however, I keep getting Unresolvable dependency resolving [Parameter #0 [ $request ]] in class Illuminate\Http\Client\Request. //…
wanna_coder101
  • 508
  • 5
  • 19
1
2