Пример #1
0
 /**
  * Customer group ID is set to quote object.
  */
 public function testGetCustomerGroupId()
 {
     /** Preconditions */
     $customerGroupId = 33;
     $this->quote->setCustomerGroupId($customerGroupId);
     /** SUT execution */
     $this->assertEquals($customerGroupId, $this->quote->getCustomerGroupId(), "Customer group ID is invalid");
 }
Пример #2
0
 /**
  * Fetch quote customer data
  *
  * @param Quote $quote
  * @return array
  */
 public function map(Quote $quote)
 {
     return [Customer::ID => $quote->getCustomerId(), Customer::EMAIL => $quote->getCustomerEmail(), Customer::GROUP_ID => $quote->getCustomerGroupId(), Customer::TAX_CLASS_ID => $quote->getCustomerTaxClassId(), Customer::PREFIX => $quote->getCustomerPrefix(), Customer::FIRST_NAME => $quote->getCustomerFirstname(), Customer::MIDDLE_NAME => $quote->getCustomerMiddlename(), Customer::LAST_NAME => $quote->getCustomerLastname(), Customer::SUFFIX => $quote->getCustomerSuffix(), Customer::DOB => $quote->getCustomerDob(), Customer::NOTE => $quote->getCustomerNote(), Customer::NOTE_NOTIFY => $quote->getCustomerNoteNotify(), Customer::IS_GUEST => $quote->getCustomerIsGuest(), Customer::GENDER => $quote->getCustomerGender(), Customer::TAXVAT => $quote->getCustomerTaxvat()];
 }