1
votes

Doing the Larcast tutorial for "Build a laravel App with TDD" and when i added the $response->assertRedirect(Project::where($attributes)->first()->path());

i started getting the following:

Error : Call to undefined method phpDocumentor\Reflection\Project::where()

How do i resolve this, struggling to find the resolution anywhere else, i have added it to the laracast tutorial itself but no answer.

Tried chasing the answer on the laracasts site.

My tests should pass. (the functionality actually works but i want the test in place to prove it does)

1

1 Answers

1
votes

You are using the wrong import for the Project so on top of the test class put this:

use App\Project;