diff --git a/tests/Feature/Api/V1/SuperAdmin/SuperAdminBarangayTest.php b/tests/Feature/Api/V1/SuperAdmin/SuperAdminBarangayTest.php index 947979f..e93a29b 100644 --- a/tests/Feature/Api/V1/SuperAdmin/SuperAdminBarangayTest.php +++ b/tests/Feature/Api/V1/SuperAdmin/SuperAdminBarangayTest.php @@ -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 {