And the Lord God planted a garden esastwardin Eden :and there he put the man whom he had formed. (Genesis 2:8)
This was a home for Adam, in the garden was everything 'that is pleasant to the sight and good for food.
It was not provision merely to keep Adam alive. In addition, the creator wanted him to enjoy life for Adam was created with a capacity for appreciating the beautiful thing which he was surrounded with. In the garden was 'the tree of the knowledge of good and evil. God 'commanded 'that Adam might eat of eat of every tree of the garden except this one and the Lord attached a severe penalty for disobedience to this command and God said to them in the day that you eatest there of you shere surely die.
It unimportant that we know just what rarely of the fruit grew on the tree of the knowledge of good and evil. It was that God chose this method of placing a test of obedience upon our first parents.