Révision 280fe687
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/sites/all/modules/commerce/modules/order/tests/commerce_order_ui.test | ||
---|---|---|
157 | 157 |
|
158 | 158 |
// Check if the product has been added to the order. |
159 | 159 |
foreach (entity_metadata_wrapper('commerce_order', reset($order))->commerce_line_items as $delta => $line_item_wrapper) { |
160 |
if ($line_item_wrapper->type->value() == 'product') {
|
|
160 |
if ($line_item_wrapper->getBundle() == 'product') {
|
|
161 | 161 |
$product = $line_item_wrapper->commerce_product->value(); |
162 | 162 |
$products[$product->product_id]= $product; |
163 | 163 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules