php – Laravel feature testing: Sqlite General error: 1 no such column: table.column-ThrowExceptions

Exception or error:

I am running Laravel 6 on Windows 10. I have been doing some feature testing but for some reason under a weird circumstance an error will be thrown by the database.

So when running tests I am sending two requests to the same endpoint using different parameter values.

In the first test it runs fine and the assertions are complete and the test passes. But when it comes to the second test it fails. With the error: General error: 1 no such column: table.column.

I have seen that people think it’s because of using single quotes when using an sqlite database (for testing in this case). But this has not worked, also it won’t make a difference if the first test is passing correctly?

I am confused on why it works for one test but not the second (even though the test is practically the same).

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *