protected function setUp() { parent::setUp(); \Drupal::service('module_installer')->install(['profile']); $profile_values = ['type' => 'billing', 'uid' => 1, 'status' => 1]; $this->billingProfile = Profile::create($profile_values); $this->billingProfile->save(); }
/** * {@inheritdoc} */ protected function setUp() { parent::setUp(); $this->cart = \Drupal::service('commerce_cart.cart_provider')->createCart('default', $this->store); $this->cartManager = \Drupal::service('commerce_cart.cart_manager'); }