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()); }
public function testLabel() { $this->assertNull($this->type->getLabel()); $this->type->setLabel('Billing'); $this->assertEquals('Billing', $this->type->getLabel()); }