<?php

use App\Services\WorkflowSettingsService;
use CodeIgniter\Test\CIUnitTestCase;

/**
 * @internal
 */
final class WorkflowSettingsServiceTest extends CIUnitTestCase
{
    public function testDefaultWorkflowKeysExist(): void
    {
        $keys = array_keys(WorkflowSettingsService::KEYS);
        $this->assertContains('wf_require_qa_on_complete', $keys);
        $this->assertContains('wf_require_invoice_before_close', $keys);
    }

    public function testEnabledUsesDefaultWhenNoDatabase(): void
    {
        $svc = new WorkflowSettingsService();
        $this->assertTrue($svc->enabled('wf_require_qa_on_complete'));
    }
}
