I am trying to test some laravel controllers but am not doing so well so far. I am meant to be using PHPSpec to do this. I have no idea where to start and I am meant to be testing the crud functionality of the controller. I understand how I might be able to do this, but really do not understand how I can translate this into a PHPSpec test.
public function show($id)
{
$temp = $this->users->find($id);
return Response::json($this->users->find($id));
}
For example, how would I be able to test this method using PHPSpec? Would it be as simple as assertions? Many Thanks in advance.