manshu
256
2
Testing

Weird PHP Testing Changes with Laravel 5.6.3

Posted 1 year ago by manshu

How's this test passing, when my index method /course has nothing inside it.

    /** @test */
    public function to_see_all_courses()
    {
        $courses = factory(Course::class, 2)->create();
        $this->get('course');
        $this->assertCount(2, $courses);
    }

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