<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

final class ListTitlebarTemplateContractTest extends TestCase
{
    use ProjectFileAssertionSupport;

    public function testTemplatesUseSharedListTitlebarPartial(): void
    {
        foreach (ListTitlebarContractFiles::titlebarTemplateFiles() as $file) {
            $content = $this->readProjectFile($file);
            $this->assertStringContainsString("require templatePath('partials/app-list-titlebar.phtml');", $content, $file);
        }
    }
}
