<?php

namespace MintyPHP\Tests\Architecture;

use PHPUnit\Framework\TestCase;

final class DetailPageTitlebarContractTest extends TestCase
{
    use ProjectFileAssertionSupport;

    public function testDetailsTitlebarExposesUnsavedMessageAndPrimarySaveMarkers(): void
    {
        $content = $this->readProjectFile('templates/partials/app-details-titlebar.phtml');

        $this->assertStringContainsString('data-detail-unsaved-message=', $content);
        $this->assertStringContainsString('data-detail-save-primary="1"', $content);
    }
}
