public function testFillEntityData()
 {
     $type = AddressType::TYPE_BILLING;
     $addressType = new AddressType($type);
     $this->assertEmpty($addressType->getLabel());
     $this->fixture->fillEntityData($type, $addressType);
     $this->assertEquals(ucfirst($type) . ' Type', $addressType->getLabel());
 }
Beispiel #2
0
 public function testLabel()
 {
     $this->assertNull($this->type->getLabel());
     $this->type->setLabel('Billing');
     $this->assertEquals('Billing', $this->type->getLabel());
 }