Multiple companies leasing in one section?

Assume two unrelated companies, A and B, have leased all of the minerals in an undivided section in Texas. If Company A drills and establishes a producing well without Company B’s consent/cooperation/participation, what is the fate of a mineral owner and who leased to Company B during the term of the lease and after it expires?