SAN FRANCISCO — Center fielder Angel Pagan and third baseman Pablo Sandoval received their marching orders Wednesday for their upcoming rehab assignments.

Pagan will give his left hamstring a test drive Thursday in Stockton, where the San Jose Giants are playing. He will play five innings Thursday and seven innings Friday, manager Bruce Bochy said. If all goes well, Bochy added, Pagan might rejoin the parent club by the end of this home stand, which concludes Sunday.

Pagan has not played since he suffered his injury May 25, but Juan Perez and Gregor Blanco have done an admirable job filling in.

Sandoval is off to San Jose for games Saturday and Sunday, Bochy said. He is slated to play five innings at third on Saturday. He will return to San Francisco in advance of the Giants flight to Los Angeles if he passes the next hurdle in his rehab from a left foot injury.

Sandoval is eligible to come off the 15-day disabled list Monday, when the Giants begin a 10-game road trip against the Los Angeles Dodgers. Tony Abreu is filling in for Sandoval at third today. Nick Noonan and Joaquin Arias split time there Tuesday night.

In other news, shortstop Brandon Crawford experienced swelling in the right index and middle fingers that he sprained Tuesday night while sliding head first into second base on a steal attempt.

Bochy said Crawford is available to pinch-run and bunt in the next two games, but he won’t play in the field until Saturday at the earliest.

Crawford said he is “sore” but that he’s feeling better than he did when he got hurt. He left the game in the fourth after experiencing difficulty gripping the ball and swinging a bat.

Arias is starting at shortstop today against the San Diego Padres.

“A player like Arias is so valuable because you can put him anywhere (in the infield),” Bochy said.