Gets the subdivision repository.
public getRepository ( ) : CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | ||
return | CommerceGuys\Addressing\Subdivision\SubdivisionRepositoryInterface | The subdivision repository. |
/** * @covers ::getRepository * @covers ::setRepository */ public function testRepository() { $subdivisionRepository = $this->getMockBuilder('CommerceGuys\\Addressing\\Subdivision\\SubdivisionRepository')->disableOriginalConstructor()->getMock(); $this->collection->setRepository($subdivisionRepository); $this->assertSame($subdivisionRepository, $this->collection->getRepository()); }