Skip to content

Can't use Factory inside Selenium Tests #132

@xoco70

Description

@xoco70

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions