GitHub

MockMagentoBundledProductItem

import { MockMagentoBundledProductItem } from '@daffodil/product-composite/driver/magento/testing'
class MockMagentoBundledProductItem implements MagentoBundledProductItem {
  required: faker.datatype.boolean()
  title: faker.random.word()
  type: faker.random.word()
  options: this.createOptions()
  option_id: faker.datatype.number({ min: 1, max: 9999 })
  protected createOptions(): MagentoBundledProductItemOption[]
}

Properties

Name Type Description
required faker.datatype.boolean()
title faker.random.word()
type faker.random.word()
options this.createOptions()
option_id faker.datatype.number({ min: 1, max: 9999 })
createOptions MagentoBundledProductItemOption[]