Integrated
Integrated copied to clipboard
Can't use Factory inside Selenium Tests
When I extend Selenium, I can't make fake object.
If I try to do:
$user = factory(RH\Person::class)->create();
I will get
PHP Fatal error: Call to a member function make() on null in /home/vagrant/RH/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 62
I guess this is because it never instantiates a laravel application instance.