# But Jesus said this to test Philip, for he himself knew what he was going to do
John briefly stops telling about the events in the story in order to explain why Jesus asked Philip where to buy bread.
# for he himself knew
Jesus knew what he would do.