it is portable as long as the test and production use the same folder structure.
you should be using a subdomain for the test site, for example,
index.php
database will it store
/uploads/images/****
which would be portable to your production site.
the portability depends on how you configure the testing site.