/**
  * Adds the list types from the test data and returns their IDs.
  *
  * @param MShop_Common_Manager_Interface $manager Product list manager
  * @param array $testdata Test data
  * @param array List of type IDs
  */
 private function _addListTypeData(MShop_Common_Manager_Interface $manager, array $testdata)
 {
     $listItemTypeIds = array();
     $productListTypeManager = $manager->getSubmanager('type', 'Default');
     $listItemType = $productListTypeManager->createItem();
     foreach ($testdata['product/list/type'] as $key => $dataset) {
         $listItemType->setId(null);
         $listItemType->setCode($dataset['code']);
         $listItemType->setDomain($dataset['domain']);
         $listItemType->setLabel($dataset['label']);
         $listItemType->setStatus($dataset['status']);
         $productListTypeManager->saveItem($listItemType);
         $listItemTypeIds[$key] = $listItemType->getId();
     }
     return $listItemTypeIds;
 }