def METHOD_NAME(self, api_client):
    """Test that search queries are recorded when they have zero results."""
    assert (
        SearchQuery.objects.all().count() == 0
    ), "no SearchQuery should be present if there is no search made."
    # `readthedo` is NOT present in project `kuma`.
    search_params = {"q": "readthedo", "project": "kuma", "version": "latest"}
    resp = api_client.get(self.url, search_params)
    assert resp.data["count"] == 0
    assert SearchQuery.objects.all().count() == 1