esta dando esse erro , como posso resolver ?

Criador
Roger Neves
Time: 00:00.408, Memory: 26.00 MB There was 1 error: 1) Tests\Feature\TenantTest::test_GetAllTenants BadMethodCallException: Call to undefined method App\Models\Tenant::factory()
Manager
Carlos Ferreira
Olá, Roger!
Tudo bem?
Tem o código no GitHub amigo?
O seu método está foda dos padrões, precisa ser assim:
testGetAllTenants
camelCase

Criador
Roger Neves
https://github.com/rgpsico/larafood.git/

Manager
Carlos Ferreira
Assim amigo:
Tenant::factory()->count(2)->create();

Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!