CommerceGuys\Addressing\Tests\Repository\ZoneRepositoryTest::testGetAll PHP Method

testGetAll() public method

public testGetAll ( $zoneRepository )
    public function testGetAll($zoneRepository)
    {
        $zones = $zoneRepository->getAll();
        $this->assertCount(2, $zones);
        $this->assertArrayHasKey('de', $zones);
        $this->assertArrayHasKey('de_vat', $zones);
        $this->assertEquals($zones['de']->getId(), 'de');
        $this->assertEquals($zones['de_vat']->getId(), 'de_vat');
        $zones = $zoneRepository->getAll('tax');
        $this->assertCount(1, $zones);
        $this->assertArrayHasKey('de_vat', $zones);
        $this->assertEquals($zones['de_vat']->getId(), 'de_vat');
    }