public static function setUpBeforeClass()
 {
     $context = TestHelper::getContext();
     $manager = new MShop_Catalog_Manager_Index_Default($context);
     $productManager = MShop_Product_Manager_Factory::createManager($context);
     $search = $productManager->createSearch();
     $conditions = array($search->compare('==', 'product.code', array('CNC', 'CNE')), $search->compare('==', 'product.editor', $context->getEditor()));
     $search->setConditions($search->combine('&&', $conditions));
     $result = $productManager->searchItems($search, array('attribute', 'price', 'text', 'product'));
     if (count($result) !== 2) {
         throw new Exception('Products not available');
     }
     foreach ($result as $item) {
         self::$_products[$item->getCode()] = $item;
         $manager->saveItem($item);
     }
 }