5 months ago

Phpunit returns green on null

Posted 5 months ago by untymage

I'm trying to make sure my model have a path ( with a slug) but i dont even have a slug column on my table but it returns green:

public function a_thread_has_a_path()
    $thread = factory(Thread::class)->create();

    $this->assertEquals("/thread/{$thread->id}/{$thread->slug}", $thread->path());


Please sign in or create an account to participate in this conversation.