public function test_create_student_without_user() { $student = factory(Student::class)->create(); $this->assertInstanceOf(Student::class, $student); $this->assertNull($student->user); }