Laravel-Test-Helpers icon indicating copy to clipboard operation
Laravel-Test-Helpers copied to clipboard

error for Factory::attributeFor("Model")

Open mishbah opened this issue 11 years ago • 0 comments

I use this code (and I have Kontakan class for model)

    public function testBasicExample()
    {
        $kontakan = Factory::attributeFor('Kontakan');
    }

and when I run phpunit, I got this error

ErrorException: Argument 2 passed to Way\Tests\Factory::fire() must be an array, string given, called in /var/www/followup/vendor/way/laravel-test-helpers/src/Way/Tests/Factory.php on line 375 and defined

mishbah avatar Dec 02 '13 05:12 mishbah