Closed developernaren closed 5 years ago
I tried to write a unit test for the model.
but whenever we use fill method on the model, it triggers this query
fill
select column_name as `column_name` from information_schema.columns where table_schema = database and table_name = table
so, it tries and connect to database and is not working in isolation, How can I avoid making this query?
I tried mocking the model class, and it works.
I tried to write a unit test for the model.
but whenever we use
fill
method on the model, it triggers this queryso, it tries and connect to database and is not working in isolation, How can I avoid making this query?