<?php

it('validates department gate config on both create and update routes', function (): void {
    $route = file_get_contents(app_path('routes/departmentGatesRelaysRoute.php'));

    expect($route)->not->toBeFalse();
    expect($route)->toContain('$gateConfig->validate();');
    expect(substr_count($route, '$gateConfig->validate();'))->toBeGreaterThanOrEqual(2);
});
