<?php

namespace Tests\Feature\Controllers;

use Illuminate\Support\Facades\Config;
use Tests\DatabaseTestCase;

class AutoImagingNotificationControllerTest extends DatabaseTestCase
{
    public function testNoAuthKey()
    {
        $this->withoutExceptionHandling();
        Config::set('services.image-sync.auto-imaging.key', 'abc');
        $response = $this->postJson(route('tenant.notifications.auto-imaging.store', tenant('id')), [
            'vehicleId' => 1
        ]);

        $response->assertStatus(401);
    }
}
