public function getRepository() { return $this->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()); }