<?php

namespace Tests\Feature\Database;

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Tests\TestCase;

class ImportedJobsMigrationTest extends TestCase
{
    use RefreshDatabase;

    public function test_imported_jobs_table_can_be_created_by_sqlite_test_database(): void
    {
        $this->assertSame('sqlite', DB::connection()->getDriverName());
        $this->assertTrue(Schema::hasTable('imported_jobs'));
        $this->assertTrue(Schema::hasColumns('imported_jobs', [
            'title',
            'company',
            'summary',
            'description',
            'source_url',
            'apply_url',
        ]));
    }
}
