CommerceGuys\Addressing\Tests\Subdivision\LazySubdivisionCollectionTest::testRepository PHP Метод

testRepository() публичный Метод

public testRepository ( )
    public function testRepository()
    {
        $subdivisionRepository = $this->getMockBuilder('CommerceGuys\\Addressing\\Subdivision\\SubdivisionRepository')->disableOriginalConstructor()->getMock();
        $this->collection->setRepository($subdivisionRepository);
        $this->assertSame($subdivisionRepository, $this->collection->getRepository());
    }