public getZone ( ) : CommerceGuys\Zone\Model\ZoneInterface | ||
리턴 | CommerceGuys\Zone\Model\ZoneInterface | The zone matched by the zone member. |
public function getZone()
{
return $this->zone;
}
/** * @covers ::getZone * @covers ::setZone */ public function testZone() { $zone = $this->getMockBuilder('CommerceGuys\\Zone\\Model\\Zone')->disableOriginalConstructor()->getMock(); $this->zoneMember->setZone($zone); $this->assertEquals($zone, $this->zoneMember->getZone()); }