<?php

namespace Tests\Unit;

use App\Support\FirebaseCredentials;
use Illuminate\Support\Facades\File;
use Tests\TestCase;

class FirebaseCredentialsTest extends TestCase
{
    public function test_path_resolves_when_configured_file_exists(): void
    {
        $path = FirebaseCredentials::path();

        $this->assertNotNull($path);
        $this->assertTrue(File::isFile($path));
    }

    public function test_is_configured_matches_path(): void
    {
        $this->assertSame(
            FirebaseCredentials::path() !== null,
            FirebaseCredentials::isConfigured()
        );
    }
}
