Skip to content

Conversation

@marvin255
Copy link
Contributor

My test for laravel 7 project:

$collection = $I->haveMultiple(Player::class, 3);
$playerToFind = $collection->random();

produces an error:

1) PlayerRepositoryCachedCest: Try find by primary
Test  tests/functional/Components/PlayerRepositoryCachedCest.php:tryFindByPrimary
[BadMethodCallException] Call to undefined method App\Components\Player::random()  

Call of factory function with 3 arguments is not supported now: https://github.com/laravel/framework/blob/7.x/src/Illuminate/Foundation/helpers.php#L486

@Naktibalda
Copy link
Member

Thanks

@Naktibalda Naktibalda merged commit 419c382 into Codeception:master Mar 28, 2020
@Naktibalda
Copy link
Member

I released it as 1.1.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants