function it_delegates_database_product_synchronization_to_the_product_persister(ProductPersister $persister, ProductInterface $product)
 {
     $persister->persist($product, ['recalculate' => true, 'flush' => true, 'schedule' => true])->shouldBeCalled();
     $this->save($product);
 }
 /**
  * Save a product
  *
  * @param ProductInterface $product The product to save
  * @param array            $options Saving options
  *
  * @return null
  */
 public function saveProduct(ProductInterface $product, array $options = [])
 {
     $options = array_merge(['recalculate' => true, 'flush' => true, 'schedule' => true], $options);
     return $this->persister->persist($product, $options);
 }