@@ -145,13 +145,37 @@ public function test_shapefile_in_zip_archive_can_be_uploaded_and_deleted()
145145 $ this ->assertEquals (69.3082 , $ feature ->boundingBox ->maxX );
146146 $ this ->assertEquals (34.57558 , $ feature ->boundingBox ->maxY );
147147
148- // $this->assertTrue($this->geoserver->exist($data), "Data not existing after upload");
148+ $ this ->assertTrue ($ this ->geoserver ->exist ($ data ), "Data not existing after upload " );
149149
150- // $deleteResult = $this->geoserver->remove($data);
150+ $ deleteResult = $ this ->geoserver ->remove ($ data );
151151
152- // $this->assertTrue($deleteResult, "GeoFile not deleted");
152+ $ this ->assertTrue ($ deleteResult , "GeoFile not deleted " );
153153
154- // $this->assertFalse($this->geoserver->exist($data), "Data still exists after remove");
154+ $ this ->assertFalse ($ this ->geoserver ->exist ($ data ), "Data still exists after remove " );
155+ }
156+
157+ public function test_utf8_shapefile_in_zip_archive_can_be_uploaded_and_deleted ()
158+ {
159+ $ datastoreName = 'shapefile-utf8-inside ' ;
160+ $ data = GeoFile::from (__DIR__ . '/../fixtures/some_shapefile_with_cyrillicйфячыцус.zip ' )->name ($ datastoreName );
161+
162+ $ feature = $ this ->geoserver ->upload ($ data );
163+
164+ $ this ->assertInstanceOf (Feature::class, $ feature );
165+ $ this ->assertEquals (GeoType::VECTOR , $ feature ->type ());
166+ $ this ->assertEquals ($ datastoreName , $ feature ->name );
167+ $ this ->assertEquals ($ datastoreName , $ feature ->title );
168+ $ this ->assertEquals ($ datastoreName , $ feature ->nativeName );
169+ $ this ->assertEquals ("EPSG:3857 " , $ feature ->srs );
170+ $ this ->assertTrue ($ feature ->enabled );
171+
172+ $ this ->assertTrue ($ this ->geoserver ->exist ($ data ), "Data not existing after upload " );
173+
174+ $ deleteResult = $ this ->geoserver ->remove ($ data );
175+
176+ $ this ->assertTrue ($ deleteResult , "GeoFile not deleted " );
177+
178+ $ this ->assertFalse ($ this ->geoserver ->exist ($ data ), "Data still exists after remove " );
155179 }
156180
157181 public function test_shapefile_in_zip_archive_can_be_renamed_during_upload_and_deleted ()
0 commit comments