Mr. Skinner turns on a red light just before he turns on the…

Mr. Skinner turns on a red light just before he turns on the electric current in the floor of his rats’ cages.  He noticed that the rats’ heart rates now increase whenever the red light comes on, before the shock even starts.  What process has taken place?