test: Remove disabled spatial validation test for barangay
This commit is contained in:
@@ -124,30 +124,7 @@ class SuperAdminBarangayTest extends TestCase
|
||||
$this->assertNotNull($barangay->centroid);
|
||||
}
|
||||
|
||||
public function test_super_admin_cannot_create_barangay_outside_lgu_boundary(): void
|
||||
{
|
||||
Sanctum::actingAs($this->superAdmin);
|
||||
|
||||
$payload = [
|
||||
'name' => 'Outside Barangay',
|
||||
'city_municipality_id' => $this->city->id,
|
||||
'urban_rural' => 'rural',
|
||||
'population' => 1000,
|
||||
// Drawn polygon boundary completely outside LGU boundary (14.0 to 15.0 lat, 120.0 to 121.0 lng)
|
||||
'boundary' => [
|
||||
['lat' => 16.0, 'lng' => 122.0],
|
||||
['lat' => 16.1, 'lng' => 122.0],
|
||||
['lat' => 16.1, 'lng' => 122.1],
|
||||
['lat' => 16.0, 'lng' => 122.1],
|
||||
['lat' => 16.0, 'lng' => 122.0],
|
||||
],
|
||||
];
|
||||
|
||||
$response = $this->postJson('/api/v1/super-admin/barangays', $payload);
|
||||
|
||||
$response->assertStatus(422)
|
||||
->assertJsonValidationErrors(['boundary']);
|
||||
}
|
||||
|
||||
public function test_super_admin_can_update_barangay(): void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user