<?php

namespace Tests\Feature\Console;

use Tests\TestCase;

class TestKeywordResearchConnectionCommandTest extends TestCase
{
    public function test_it_fails_when_google_ads_credentials_are_missing(): void
    {
        config([
            'google-ads.developer_token' => null,
            'google-ads.client_id' => null,
            'google-ads.client_secret' => null,
            'google-ads.refresh_token' => null,
        ]);

        $this->artisan('keywords:test-connection')
            ->assertFailed()
            ->expectsOutputToContain('Missing Google Ads credentials in .env');
    }
}
