6 We are to understand, then, that there are two kinds of temptation: one, that deceives; the other, that proves. As regards that which deceives, God tempts not any man; as regards that which proves, the Lord your God tempts you, that He may know whether ye love Him. But here again, also, there arises another question, how He tempts that He may know, from whom, prior to the temptation, nothing can be hid. It is not that God is ignorant; but it is said, that He may know, that is, that He may make you to know.
Such modes of speaking are found both in our ordinary conversation, and in writers of eloquence. Let me say a word on our style of conversation. We speak of a blind ditch, not because it has lost its eyes, but because by lying hid it makes us blind to its existence. One speaks of “bitter lupins,” that is, “sour;” not that they themselves are bitter, but because they occasion bitterness to those who taste them. And so there are also expressions of this sort in Scripture. Those who take the trouble to attain a knowledge of such points have no trouble in solving them.
And so “the Lord your God tempts you, that He may know.” What is this, “that He may know”? That He may make you to know “if you love Him.” Job was unknown to himself, but he was not unknown to God. He led the tempter into [Job], and brought him to a knowledge of himself.
Source: Tractates on the Gospel of John (New Advent)