<?php

namespace Tests\Tenant;

use App\Traits\EnsuresVehicleAttribute;
use Mtc\MercuryDataModels\VehicleAttribute;
use Tests\TenantTestCase;

class VehicleAttributeTraitTest extends TenantTestCase
{
    use EnsuresVehicleAttribute;

    public function testEmptyAttributes()
    {
        $this->assertEmpty(VehicleAttribute::all());
    }

    public function testAttribute()
    {
        $this->getVehicleAttribute('example_attribute', 'boolean');

        $this->assertCount(1, VehicleAttribute::all());
        $this->assertEquals('example_attribute', VehicleAttribute::first()->name);
    }
}
