FEHA is the main legislation governing work discrimination in California. It prohibits corporations from firing workforce because they certainly are a member of the guarded course.
There are many other situations that https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml