mardi 8 août 2017

How must look unit test?

I have Laravel method in Controller:

public function index()
{
    return Post::query(true)->filter(\Request::input())->paginate()->appends(\Request::input());
}

How test it method? Create post, get it, and compare response?

Aucun commentaire:

Enregistrer un commentaire