CommerceGuys\Addressing\Tests\AddressFormat\AddressFormatRepositoryTest::testGetAll PHP Метод

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

public testGetAll ( )
    public function testGetAll()
    {
        $addressFormatRepository = new AddressFormatRepository();
        $addressFormats = $addressFormatRepository->getAll();
        $this->assertArrayHasKey('ES', $addressFormats);
        $this->assertArrayHasKey('RS', $addressFormats);
        $this->assertEquals('ES', $addressFormats['ES']->getCountryCode());
        $this->assertEquals(LocalityType::CITY, $addressFormats['ES']->getLocalityType());
        $this->assertEquals('RS', $addressFormats['RS']->getCountryCode());
        $this->assertEquals(LocalityType::CITY, $addressFormats['RS']->getLocalityType());
    }