Ejemplo n.º 1
0
 public function testGetRequiredFieldsByType()
 {
     $address = new \XLite\Model\Address();
     $this->assertEquals($address->getBillingRequiredFields(), $address->getRequiredFieldsByType($address::BILLING), 'check billing');
     $this->assertEquals($address->getShippingRequiredFields(), $address->getRequiredFieldsByType($address::SHIPPING), 'check shipping');
     $this->assertNull($address->getRequiredFieldsByType('z'), 'check empty');
 }