YHWH responds to the Israelites grumbling with the giving of manna (manna means "portion") with some rules about how & when t collect it. The Lord is testing the Israelites with the provision of manna to see if they will trust Him (instead of themselves) for their daily portion.