BishoyWagih's avatar

General Error : 1 no such table Exists

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..

0 likes
2 replies
Sergiu17's avatar

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

1 like
BishoyWagih's avatar

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

Thanks @Sergiu17 ..

1 like

Please or to participate in this conversation.