General Error : 1 no such table Exists

Published 2 months ago by BishoyWagih

why i see this error when running phpunit test

1) Tests\Feature\Item\ItemTest::it_can_see_items
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1 no such       
   table: categories (SQL: insert into"categories" ("code", "name", "updated_at", 
  "created_at") values (94, Ea consectetur et voluptates velit., 2018-06-23 21:06:06, 
  2018-06-23 21:06:06))

when i see sqlite as database Testing..

Sergiu17

Would be nice if you'd show your code :)

BishoyWagih

actually i solved the problem, i forget to include RefreshDatabase Trait..

Thanks @Sergiu17 ..

Please sign in or create an account to participate in this conversation.