GitHub

MockCartShippingMethod

class

import { MockCartShippingMethod } from '@daffodil/cart/driver/magento/testing'

class MockCartShippingMethod implements MagentoCartShippingMethod {
  carrier_code: faker.lorem.word() = faker.lorem.word()
  carrier_title: faker.lorem.words(2) = faker.lorem.words(2)
  method_title: faker.lorem.words(2) = faker.lorem.words(2)
  method_code: faker.lorem.word() = faker.lorem.word()
  amount: MagentoMoney = this.money()
}