getZone() public method

Gets the zone.
public getZone ( ) : CommerceGuys\Zone\Model\ZoneInterface
return CommerceGuys\Zone\Model\ZoneInterface The zone matched by the zone member.
示例#1
0
 /**
  * @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());
 }