I built an API (back: Laravel & front: angular) and I would like to test my API. I'm a beginner on Laravel and i've got problems when I want to do some integration test. Indeed, I tried this little test:
class userTest extends TestCase
{
public function testExample()
{
$response = $this->getJson('/api/listUsers');
$response->assertStatus(200);
}
}
and I always have this error:
Doctrine\DBAL\Schema\SchemaException: There is no column with name 'deleted_at' on table 'users'.
While yet 'deleted_at' exist in my table 'users, so I don't understand, I searched on internet but no one got this error when running the phpunit command.
Can I have some help pls ??
Aucun commentaire:
Enregistrer un commentaire