<?php

app_require('modules/selfserve/helpers/selfserve_lane_command.php');

use modules\selfserve\helpers\selfserve_lane_command;

it('parses property gate lane commands', function (): void {
    expect(selfserve_lane_command::tryFrom('OPEN_PROPERTY_ACCESS_GATE'))
        ->toBe(selfserve_lane_command::OPEN_PROPERTY_ACCESS_GATE);
    expect(selfserve_lane_command::tryFrom('OPEN_PROPERTY_EXIT_GATE'))
        ->toBe(selfserve_lane_command::OPEN_PROPERTY_EXIT_GATE);
    expect(selfserve_lane_command::tryFrom('open_property_exit_gate'))
        ->toBe(selfserve_lane_command::OPEN_PROPERTY_EXIT_GATE);
});

