John 6:6

6 He asked this only to test him, for he already had in mind what he was going to do.

Read John 6:6 Using Other Translations

And this he said to prove him: for he himself knew what he would do.
He said this to test him, for he himself knew what he would do.
He was testing Philip, for he already knew what he was going to do.