/**
  * Should be able to create with given data.
  */
 public function testCreate()
 {
     $name = $this->generator()->anyString();
     $sku = $this->generator()->anyString();
     $newProduct = $this->makeMock(Product::class);
     $this->productResource->shouldReceive('create')->with(compact('name', 'sku'))->atLeast()->once()->andReturn($newProduct);
     $this->productRepository->create(compact('name', 'sku'));
 }
 /**
  * @param array $productData
  *
  * @return Product
  */
 public function createProduct(array $productData) : Product
 {
     return $this->productRepository->create($productData);
 }