<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

final class AuthLoginTenantSelectionContractTest extends TestCase
{
    use ProjectFileAssertionSupport;

    public function testTenantSelectionUsesSemanticFieldsetAndTextLabel(): void
    {
        $content = $this->readProjectFile('pages/auth/login(login).phtml');

        $this->assertStringContainsString('login-tenant-fieldset', $content);
        $this->assertStringContainsString('login-tenant-select-label', $content);
        $this->assertStringContainsString('login-tenant-choice-text', $content);
        $this->assertStringContainsString('login-microsoft-link', $content);
    }
}
