Not married

How does the whole hospital/birth certificate thing go down for my fiancé and I? I read something about how the father can be assumed if we were married but otherwise we need a paternity test? Does anyone know from experience how this works? Does it take a few days for test results, do they do it right away? I live in Phoenix, AZ if that helps