Integrated icon indicating copy to clipboard operation
Integrated copied to clipboard

Can't use Factory inside Selenium Tests

Open xoco70 opened this issue 9 years ago • 0 comments

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.

xoco70 avatar Mar 10 '16 18:03 xoco70