I am trying to do: $this->assertFileExists($user->getFirstMedia()->getPath()); In my test. But when I run it I get this error: BadMethodCallException: Call to undefined method AppModelsUser::getFirstMedia(). I do: And I also do: As far as I know I am using the right traits. What am I doing wrong hereā¦