Lets say you have a website, that uses a function to retrieve data from the database and returns the result to be displayed/parsed/etc...
Since the data that is retrieve
I would build the data in the test itself. That way you can even test complicated scenarios for the ever changing data. The key point is that you can control the data changes in your tests by having a dedicated test db,
Step 1: Insert the data you need into a db that is only used by the test Step 2: The db is now in a stable predictable state, so you can run your queries and test the output