The test involves collecting a small sample of the child's stool and analyzing it for its pH level. The collection can be done at home or in a clinical setting. The stool sample is then sent to a laboratory where it is tested using a pH meter or pH paper.