@@ 83-89 (lines=7) @@ | ||
80 | $this->assertEquals(2367891, $oNts->teryt_terc_id); |
|
81 | } |
|
82 | ||
83 | public function testSearchCommune() |
|
84 | { |
|
85 | $res = $this->oApi->searchCommune()->limit(1)->get(); |
|
86 | $this->assertInstanceOf(SearchResponse::class, $res); |
|
87 | $this->assertEquals(1, count($res->items)); |
|
88 | $this->assertInstanceOf(Commune::class, $res->items[0]->data); |
|
89 | } |
|
90 | ||
91 | public function testSearchDistrict() |
|
92 | { |
|
@@ 91-97 (lines=7) @@ | ||
88 | $this->assertInstanceOf(Commune::class, $res->items[0]->data); |
|
89 | } |
|
90 | ||
91 | public function testSearchDistrict() |
|
92 | { |
|
93 | $res = $this->oApi->searchDistrict()->limit(1)->get(); |
|
94 | $this->assertInstanceOf(SearchResponse::class, $res); |
|
95 | $this->assertEquals(1, count($res->items)); |
|
96 | $this->assertInstanceOf(District::class, $res->items[0]->data); |
|
97 | } |
|
98 | ||
99 | public function testSearchKrsEntity() |
|
100 | { |
|
@@ 99-105 (lines=7) @@ | ||
96 | $this->assertInstanceOf(District::class, $res->items[0]->data); |
|
97 | } |
|
98 | ||
99 | public function testSearchKrsEntity() |
|
100 | { |
|
101 | $res = $this->oApi->searchKrsEntity()->limit(1)->get(); |
|
102 | $this->assertInstanceOf(SearchResponse::class, $res); |
|
103 | $this->assertEquals(1, count($res->items)); |
|
104 | $this->assertInstanceOf(KrsEntity::class, $res->items[0]->data); |
|
105 | } |
|
106 | ||
107 | public function testSearchKrsEntityType() |
|
108 | { |
|
@@ 107-113 (lines=7) @@ | ||
104 | $this->assertInstanceOf(KrsEntity::class, $res->items[0]->data); |
|
105 | } |
|
106 | ||
107 | public function testSearchKrsEntityType() |
|
108 | { |
|
109 | $res = $this->oApi->searchKrsEntityType()->limit(1)->get(); |
|
110 | $this->assertInstanceOf(SearchResponse::class, $res); |
|
111 | $this->assertEquals(1, count($res->items)); |
|
112 | $this->assertInstanceOf(KrsEntityType::class, $res->items[0]->data); |
|
113 | } |
|
114 | ||
115 | public function testSearchProvince() |
|
116 | { |
|
@@ 115-121 (lines=7) @@ | ||
112 | $this->assertInstanceOf(KrsEntityType::class, $res->items[0]->data); |
|
113 | } |
|
114 | ||
115 | public function testSearchProvince() |
|
116 | { |
|
117 | $res = $this->oApi->searchProvince()->limit(1)->get(); |
|
118 | $this->assertInstanceOf(SearchResponse::class, $res); |
|
119 | $this->assertEquals(1, count($res->items)); |
|
120 | $this->assertInstanceOf(Province::class, $res->items[0]->data); |
|
121 | } |
|
122 | } |
|
123 |